fix(systemd): remove RemainAfterExit from services
RemainAfterExit=yes makes impossible for service to restart automatically if exited with 0 exit code
This commit is contained in:
@@ -10,7 +10,6 @@ WantedBy=multi-user.target
|
|||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
User=%USER%
|
User=%USER%
|
||||||
RemainAfterExit=yes
|
|
||||||
WorkingDirectory=/home/%USER%/klipper
|
WorkingDirectory=/home/%USER%/klipper
|
||||||
EnvironmentFile=%ENV_FILE%
|
EnvironmentFile=%ENV_FILE%
|
||||||
ExecStart=%ENV%/bin/python $KLIPPER_ARGS
|
ExecStart=%ENV%/bin/python $KLIPPER_ARGS
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ 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
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ WantedBy=multi-user.target
|
|||||||
Type=simple
|
Type=simple
|
||||||
User=%USER%
|
User=%USER%
|
||||||
SupplementaryGroups=moonraker-admin
|
SupplementaryGroups=moonraker-admin
|
||||||
RemainAfterExit=yes
|
|
||||||
WorkingDirectory=/home/%USER%/moonraker
|
WorkingDirectory=/home/%USER%/moonraker
|
||||||
EnvironmentFile=%ENV_FILE%
|
EnvironmentFile=%ENV_FILE%
|
||||||
ExecStart=%ENV%/bin/python $MOONRAKER_ARGS
|
ExecStart=%ENV%/bin/python $MOONRAKER_ARGS
|
||||||
|
|||||||
Reference in New Issue
Block a user