fix(telegram bot): Fix service restart (#296)

This commit was merged in pull request #296.
This commit is contained in:
CODeRUS
2023-02-14 19:40:11 +01:00
committed by GitHub
parent bb3ec79756
commit 99b7672dc9

View File

@@ -9,9 +9,8 @@ WantedBy=multi-user.target
[Service] [Service]
Type=simple Type=simple
User=%USER% User=%USER%
RemainAfterExit=yes
WorkingDirectory=/home/%USER%/moonraker-telegram-bot WorkingDirectory=/home/%USER%/moonraker-telegram-bot
EnvironmentFile=%ENV_FILE% EnvironmentFile=%ENV_FILE%
ExecStart=%ENV%/bin/python $TELEGRAM_BOT_ARGS ExecStart=%ENV%/bin/python $TELEGRAM_BOT_ARGS
Restart=always Restart=always
RestartSec=10 RestartSec=10