-
-
Save desyncr/8463053 to your computer and use it in GitHub Desktop.
Monit check pid-less process (without script)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
check process zmq with pidfile '/tmp/zmq.pid' | |
start program '/bin/bash -c "/usr/bin/php /var/www/sm/public/index.php zmq daemon execute & echo $! > /tmp/zmq.pid"' | |
stop program '/usr/bin/killall --full "zmq daemon execute"' |
Hi zmq, It seems to be a cool way to go around the pid problem with monit but being new at this I don't know how to implement in for qbittorrent-nox maybe you can help ?
this is where the file is located
nevsky@nevsky:~$ whereis qbittorrent-nox
qbittorrent-nox: /usr/bin/qbittorrent-nox /usr/bin/X11/qbittorrent-nox /usr/share/man/man1/qbittorrent-nox.1.gz
this is what I did but it failed to work
check process Qbitttorrent with pidfile '/tmp/Qbittorrent.pid'
start program '/bin/bash -c "/usr/bin/qbittorrent-nox /usr/bin/X11/qbittorrent-nox Qbittorrent daemon execute & echo $! > /tmp/Qbittorrent.pid"'
stop program '/usr/bin/killall --full "Qbittorrent daemon execute”'
Thanks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice!