2014-10-11 08:12:20 -04:00
|
|
|
# Service
|
|
|
|
|
|
|
|
setuid telegramd
|
|
|
|
setgid telegramd
|
|
|
|
|
|
|
|
script
|
2014-10-11 08:30:27 -04:00
|
|
|
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
|
2014-10-11 08:12:20 -04:00
|
|
|
# This example for Daemon wich keep log in his home directory
|
|
|
|
# This daemon can listen localhost:8002 tcp port
|
|
|
|
end script
|