We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
method by @larknart
create a daemon configuration script under /etc/init ( NOT /etc/init.d ):-
nano /etc/init/mybot.conf code sample:
description "MyBot Daemon" author "larknart"
description "MyBot Daemon"
author "larknart"
start on startup stop on shutdown respawn
start on startup
stop on shutdown
respawn
exec /usr/share/getUpdateCLI.php
alter getUpdateCLI.php below code:
#while true; do ./getUpdatesCLI.php; done
add:
$seconds = 5; $micro = $seconds * 1000000;
$seconds = 5;
$micro = $seconds * 1000000;
at end of code below: } add:
}
usleep($micro);
create symbolic link to /usr/share/ ln -s /var/www/html/bot/getUpdateCLI.php /usr/share
after finish all those steps...now you can use " stop mybot | start mybot | status mybot " in terminal then you'll automatically get update.