Configure and install upstart script
This commit is contained in:
@ -1,9 +1,10 @@
|
||||
description "Telegram-bot upstart script"
|
||||
|
||||
respawn
|
||||
respawn limit 15 5
|
||||
|
||||
start on runlevel [2345]
|
||||
stop on shutdown
|
||||
|
||||
script
|
||||
exec su -s /bin/sh -c /home/yperez/develop/telegram-bot/launch.sh yperez
|
||||
end script
|
||||
setuid yourusername
|
||||
exec /bin/sh telegrambotpath/launch.sh
|
||||
|
Reference in New Issue
Block a user