diff --git a/README.md b/README.md index 4afa565..1582475 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ Bot for telegram with tg. Read [tg](https://github.com/vysheng/tg) for compiling, then launch. ```bash +git submodule update --init --recursive ./launch.sh ``` diff --git a/etc/telegram.conf b/etc/telegram.conf new file mode 100644 index 0000000..288175a --- /dev/null +++ b/etc/telegram.conf @@ -0,0 +1,9 @@ +respawn +respawn limit 15 5 + +start on runlevel [2345] +stop on shutdown + +script +su - yperez -c /home/yperez/develop/telegram-bot/launch.sh > /dev/null +end script