Explorar el Código

fixed cedbot.service

Bachir Soussi Chiadmi hace 7 años
padre
commit
02223c1b30
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. 4 4
      cedbot.service

+ 4 - 4
cedbot.service

@@ -1,12 +1,12 @@
 [Unit]
-Description=cedbot service
+Description=cedbot convesdis chatbot service
 After=syslog.target network.target
 
 [Service]
+Type=idle
 WorkingDirectory=/path/to/cedbot/
-ExecStart=/path/to/cedbot/cedbot_muc.py -d -j user@domain.tld/ressource -r room@muc.domain.tld -n cedbot -p YOURPASSWORD
-StandardOutput=syslog
-StandardError=syslog
+ExecStart=/user/bin/python /path/to/cedbot/cedbot_muc.py -d -j user@domain.tld/ressource -r room@muc.domain.tld -n cedbot -p YOURPASSWORD
+Restart=on-abort
 
 [Install]
 WantedBy=multi-user.target