add systemd
This commit is contained in:
parent
92e18651ba
commit
3ed91b4a2c
6
systemd/telegram.bot.news.service
Normal file
6
systemd/telegram.bot.news.service
Normal file
@ -0,0 +1,6 @@
|
||||
[Unit]
|
||||
Description=Telegram Bot for News
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/opt/TelegramNewsBot/virt_env/bin/python /opt/TelegramNewsBot/main.py
|
9
systemd/telegram.bot.news.timer
Normal file
9
systemd/telegram.bot.news.timer
Normal file
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Timer for Telegram Bot for News
|
||||
|
||||
[Timer]
|
||||
OnUnitActiveSec=10m
|
||||
OnBootSec=10m
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
Loading…
x
Reference in New Issue
Block a user