19 lines
416 B
Desktop File
Executable File
19 lines
416 B
Desktop File
Executable File
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
|