diff --git a/xmpp_bot.service b/xmpp_bot.service index 2d15a22..9a2ed4f 100644 --- a/xmpp_bot.service +++ b/xmpp_bot.service @@ -3,8 +3,8 @@ Description=SlixXMPP service bot After=network.target ejabberd.service [Service] -Type=simple -ExecStart=/usr/bin/python3 /home/isengard_xmpp/xmpp_bot/bot_main.py --jid isengard@a-lec.org --nick Isengard --password $(cat /etc/xmpp_bot/password.conf) --room cominfra@salons.a-lec.org +WorkingDirectory=/home/isengard_xmpp/xmpp_bot +ExecStart=/bin/bash -c 'python3 bot_main.py --jid isengard@a-lec.org --nick Isengard --password $(cat /etc/xmpp_bot/password.conf) --room cominfra@salons.a-lec.org' Restart=on-failure RestartSec=60s User=isengard_xmpp