From a8582c60e3bed5b93c989e2963d40130771cf11d Mon Sep 17 00:00:00 2001 From: Igor <50257429+igorechek06@users.noreply.github.com> Date: Sat, 28 Aug 2021 21:10:16 +0900 Subject: 0.0.1 --- FunnyPineappleBot.sample.service | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 FunnyPineappleBot.sample.service (limited to 'FunnyPineappleBot.sample.service') 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 @@ +[Unit] +Description=Telegram bot from FunnyPineappleChat +After=syslog.target +After=network.target + +[Service] +Type=simple +User={username} +WorkingDirectory={path} +ExecStart={py_path} main.py -m +KillMode=control-group +KillSignal=15 +SendSIGKILL={send_kill} +RestartSec=5 +Restart=always + +[Install] +WantedBy=multi-user.target \ No newline at end of file -- cgit v1.2.3