diff options
| author | Igor <50257429+igorechek06@users.noreply.github.com> | 2021-08-28 21:10:16 +0900 |
|---|---|---|
| committer | Igor <50257429+igorechek06@users.noreply.github.com> | 2021-08-28 21:10:16 +0900 |
| commit | a8582c60e3bed5b93c989e2963d40130771cf11d (patch) | |
| tree | 747f2cfe1a8a8f003cba81d92ebe3822b4adc419 /FunnyPineappleBot.sample.service | |
| parent | 2efa35c42be7ac554e3519b8673f7cad8c966e64 (diff) | |
| download | karpov_ai_bot-a8582c60e3bed5b93c989e2963d40130771cf11d.tar.gz karpov_ai_bot-a8582c60e3bed5b93c989e2963d40130771cf11d.zip | |
0.0.1
Diffstat (limited to 'FunnyPineappleBot.sample.service')
| -rw-r--r-- | FunnyPineappleBot.sample.service | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/FunnyPineappleBot.sample.service b/FunnyPineappleBot.sample.service new file mode 100644 index 0000000..210b267 --- /dev/null +++ b/FunnyPineappleBot.sample.service | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | [Unit] | ||
| 2 | Description=Telegram bot from FunnyPineappleChat | ||
| 3 | After=syslog.target | ||
| 4 | After=network.target | ||
| 5 | |||
| 6 | [Service] | ||
| 7 | Type=simple | ||
| 8 | User={username} | ||
| 9 | WorkingDirectory={path} | ||
| 10 | ExecStart={py_path} main.py -m | ||
| 11 | KillMode=control-group | ||
| 12 | KillSignal=15 | ||
| 13 | SendSIGKILL={send_kill} | ||
| 14 | RestartSec=5 | ||
| 15 | Restart=always | ||
| 16 | |||
| 17 | [Install] | ||
| 18 | WantedBy=multi-user.target \ No newline at end of file | ||
