Touch a file in Linuxprogramming.devimage chraebsli ( @chraebsli@programming.dev ) cake Programmer Humor@programming.dev • 4 months ago message-square45fedilinkarrow-up1665
arrow-up1665imageTouch a file in Linuxprogramming.dev chraebsli ( @chraebsli@programming.dev ) cake Programmer Humor@programming.dev • 4 months ago message-square45fedilink
minus-square Züri ( @zurchpet@lemmy.ml ) linkfedilink23•4 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 ( @dan@upvote.au ) linkfedilink6•4 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-square Züri ( @zurchpet@lemmy.ml ) linkfedilink2•4 months agoIndeed. Replacing monit with systemd for this job is still on our todo list.
We use it to trigger service restarts.
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.