|
|
@@ -4,6 +4,7 @@ After=network.target nss-lookup.target
|
|
|
|
|
|
[Service]
|
|
|
Type=simple
|
|
|
+WorkingDirectory=/opt/malbot/
|
|
|
ExecStart=/usr/local/bin/python3.7 /opt/malbot/myanimebot.py
|
|
|
ExecStop=/bin/kill -15 $MAINPID
|
|
|
Restart=on-failure
|
|
|
@@ -11,5 +12,9 @@ Restart=on-failure
|
|
|
User=malbot
|
|
|
Group=malbot
|
|
|
|
|
|
+StandardOutput=syslog
|
|
|
+StandardError=syslog
|
|
|
+SyslogIdentifier=malbot
|
|
|
+
|
|
|
[Install]
|
|
|
WantedBy=multi-user.target
|