Files
kiauh/resources/moonraker-telegram-bot.service
CODeRUS 22d2f4283b fix(telegram bot): Fix service restart
Removed `RemainAfterExit`, as it is not needed for `Type=simple` service, and only cause problems.
2023-02-13 22:50:31 +03:00

17 lines
375 B
Desktop File

[Unit]
Description=Moonraker Telegram Bot SV1 %INST%
Documentation=https://github.com/nlef/moonraker-telegram-bot/wiki
After=network-online.target
[Install]
WantedBy=multi-user.target
[Service]
Type=simple
User=%USER%
WorkingDirectory=/home/%USER%/moonraker-telegram-bot
EnvironmentFile=%ENV_FILE%
ExecStart=%ENV%/bin/python $TELEGRAM_BOT_ARGS
Restart=always
RestartSec=10