Obtention du mot de passe depuis la conf

This commit is contained in:
Adrien Bourmault 2022-02-04 21:30:51 +01:00 committed by admin666
parent 13a1bf4629
commit 4136a25f08
1 changed files with 2 additions and 2 deletions

View File

@ -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