Configure and install upstart script

This commit is contained in:
Daniel I
2014-12-17 21:31:52 +01:00
parent 8775f720a6
commit 3de95880f8
2 changed files with 9 additions and 4 deletions

View File

@ -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