fix(telegram bot): Fix service restart

Removed `RemainAfterExit`, as it is not needed for `Type=simple` service, and only cause problems.
This commit is contained in:
CODeRUS
2023-02-13 22:50:31 +03:00
committed by GitHub
parent bb3ec79756
commit 22d2f4283b

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