From 4136a25f0831b3e730053999e7d68ca0509f9ef4 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Fri, 4 Feb 2022 21:30:51 +0100 Subject: [PATCH] Obtention du mot de passe depuis la conf --- xmpp_bot.service | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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