chraebsli to Programmer Humor@programming.dev • 8 months agoTouch a file in Linuxprogramming.devimagemessage-square92fedilinkarrow-up11.2Karrow-down131
arrow-up11.17Karrow-down1imageTouch a file in Linuxprogramming.devchraebsli to Programmer Humor@programming.dev • 8 months agomessage-square92fedilink
minus-squareZürilinkfedilink32•8 months agoWe use it to trigger service restarts. touch tmp/service-restart.txt Using monit to detect the timestamp change and do the actual restart command.
minus-square@dan@upvote.aulinkfedilink5•8 months agoThis is an interesting idea to allow non-root users to restart a service. It looks like this is doable with systemd too. https://superuser.com/a/1531261
minus-squareZürilinkfedilink2•8 months agoIndeed. Replacing monit with systemd for this job is still on our todo list.
We use it to trigger service restarts.
touch tmp/service-restart.txt
Using
monit
to detect the timestamp change and do the actual restart command.This is an interesting idea to allow non-root users to restart a service. It looks like this is doable with systemd too. https://superuser.com/a/1531261
Indeed. Replacing monit with systemd for this job is still on our todo list.