forked from yagop/telegram-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure and install upstart script
- Loading branch information
Daniel I
committed
Dec 17, 2014
1 parent
8775f72
commit 3de9588
Showing
2 changed files
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |