Skip to content

Instantly share code, notes, and snippets.

@jced-artem
Created December 6, 2016 15:43
Show Gist options
  • Save jced-artem/8beeaf84d4b0c9b741df9938a1cfa81a to your computer and use it in GitHub Desktop.
Save jced-artem/8beeaf84d4b0c9b741df9938a1cfa81a to your computer and use it in GitHub Desktop.
Simple bash daemon
To run this daemon:
setsid /path/to/simple-daemon.sh >>/dev/null 2>&1
#!/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