From fc16f25ed7de44231086b740560b89e9ebb029cb Mon Sep 17 00:00:00 2001 From: Steve Illichevskiy Date: Sat, 11 Oct 2014 16:30:27 +0400 Subject: [PATCH] Upstart tested --- debian/install | 4 ++-- debian/telegram-cli.upstart | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/debian/install b/debian/install index 8fa39a1..035887d 100644 --- a/debian/install +++ b/debian/install @@ -3,5 +3,5 @@ server.pub etc/telegram-cli #bin/telegram-cli usr/share/telegram-daemon/bin #start-telegram-daemon /usr/share/telegram-daemon/bin -#test.lua var/lib/telegram-daemon/ -#telegram-daemon etc/init.d \ No newline at end of file +test.lua var/lib/telegram-cli/ +#telegram-daemon etc/init.d diff --git a/debian/telegram-cli.upstart b/debian/telegram-cli.upstart index 8bd5ffa..21e074b 100644 --- a/debian/telegram-cli.upstart +++ b/debian/telegram-cli.upstart @@ -4,7 +4,7 @@ setuid telegramd setgid telegramd script - exec /usr/bin/telegram-cli -W -d -C -vvvv -l 0 -L /var/lib/telegram-cli/telegram-cli.log -P 8002 + exec /usr/bin/telegram-cli -s /var/lib/telegram-cli/test.lua -W -d -C -vvvv -l 0 -L /var/lib/telegram-cli/telegram-cli.log -P 8002 # This example for Daemon wich keep log in his home directory # This daemon can listen localhost:8002 tcp port end script