RemainAfterExit=yes makes impossible for service to restart automatically if exited with 0 exit code
18 lines
407 B
Desktop File
18 lines
407 B
Desktop File
[Unit]
|
|
Description=API Server for Klipper SV1 %INST%
|
|
Documentation=https://moonraker.readthedocs.io/
|
|
Requires=network-online.target
|
|
After=network-online.target
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=%USER%
|
|
SupplementaryGroups=moonraker-admin
|
|
WorkingDirectory=/home/%USER%/moonraker
|
|
EnvironmentFile=%ENV_FILE%
|
|
ExecStart=%ENV%/bin/python $MOONRAKER_ARGS
|
|
Restart=always
|
|
RestartSec=10 |