first commit
This commit is contained in:
Executable
+18
@@ -0,0 +1,18 @@
|
||||
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
|
||||
Reference in New Issue
Block a user