19 lines
416 B
SYSTEMD
19 lines
416 B
SYSTEMD
|
Unit]
|
||
|
Description=TelegraBot Service
|
||
|
After=syslog.target network.target
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
# Restart=always
|
||
|
# RestartSec=3
|
||
|
StandardOutput=null
|
||
|
WorkingDirectory=/usr/bin
|
||
|
ExecStart=/usr/bin/python /home/pi/telegrambot.py
|
||
|
ExecReload=/bin/kill -HUP $MAINPID
|
||
|
KillMode=process
|
||
|
|
||
|
[Install]
|
||
|
# To make the network-online.target available
|
||
|
# systemctl enable systemd-networkd-wait-online.service
|
||
|
WantedBy=multi-user.target
|