isengard-bot/xmpp_bot.service

14 lines
387 B
SYSTEMD

[Unit]
Description=SlixXMPP service bot
After=network.target ejabberd.service
[Service]
WorkingDirectory=/home/isengard_xmpp/xmpp_bot
ExecStart=/bin/bash -c 'python3 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
[Install]
WantedBy=multi-user.target