chraebsli@programming.dev to Programmer Humor@programming.dev · 6 个月前Touch a file in Linuxprogramming.devimagemessage-square94fedilinkarrow-up11.18Karrow-down131
arrow-up11.15Karrow-down1imageTouch a file in Linuxprogramming.devchraebsli@programming.dev to Programmer Humor@programming.dev · 6 个月前message-square94fedilink
minus-squareZüri@lemmy.mllinkfedilinkarrow-up33·6 个月前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.
minus-squaredan@upvote.aulinkfedilinkarrow-up6·6 个月前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
minus-squareZüri@lemmy.mllinkfedilinkarrow-up2·6 个月前Indeed. 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.