Created
December 6, 2016 15:43
-
-
Save jced-artem/8beeaf84d4b0c9b741df9938a1cfa81a to your computer and use it in GitHub Desktop.
Simple bash daemon
This file contains 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
To run this daemon: | |
setsid /path/to/simple-daemon.sh >>/dev/null 2>&1 |
This file contains 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
#!/bin/bash | |
while true | |
do | |
/usr/bin/php /path/to/command >>/dev/null 2>&1 | |
sleep 10 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment