[Unit] Description=SlixXMPP service bot After=network.target ejabberd.service [Service] WorkingDirectory=/var/isengard_xmpp/repo ExecStart=/bin/bash -c 'python3 main.py --jid isengard@a-lec.org --nick Isengard --password $(cat /etc/xmpp_bot/password.conf) --room cominfra-supervision@salons.a-lec.org' Restart=on-failure RestartSec=60s User=isengard_xmpp [Install] WantedBy=multi-user.target