We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
method by @larknart for Ubuntu
/etc/init
/etc/init.d
$ nano /etc/init/mybot.conf
code sample:
description "MyBot Daemon" author "larknart" start on startup stop on shutdown respawn exec /usr/share/getUpdateCLI.php
getUpdateCLI.php
sleep(5); // Sleep for 5 seconds.
/usr/share/
$ ln -s /var/www/html/bot/getUpdateCLI.php /usr/share
start mybot | stop mybot | status mybot