From 7b97df542d79542e29d942f37c44e240ca0f02f5 Mon Sep 17 00:00:00 2001 From: bashmak Date: Sat, 29 Jul 2017 14:59:04 +0300 Subject: [PATCH] Init commit --- systemd_units/djing_telebot.service | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 systemd_units/djing_telebot.service diff --git a/systemd_units/djing_telebot.service b/systemd_units/djing_telebot.service new file mode 100644 index 0000000..535b8c0 --- /dev/null +++ b/systemd_units/djing_telebot.service @@ -0,0 +1,15 @@ +[Unit] +Description=A job for djing + +[Service] +Type=simple +ExecStart=/usr/bin/python3 ./telebot.py > /dev/null +PIDFile=/run/telebot.py.pid +WorkingDirectory=/srv/http/djing +TimeoutSec=9 +Restart=always +User=http +Group=http + +[Install] +WantedBy=multi-user.target