RemainAfterExit=yes makes impossible for service to restart automatically if exited with 0 exit code
18 lines
346 B
Desktop File
18 lines
346 B
Desktop File
[Unit]
|
|
Description=Klipper 3D Printer Firmware SV1
|
|
Documentation=https://www.klipper3d.org/
|
|
After=network-online.target
|
|
Wants=udev.target
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=%USER%
|
|
WorkingDirectory=/home/%USER%/klipper
|
|
EnvironmentFile=%ENV_FILE%
|
|
ExecStart=%ENV%/bin/python $KLIPPER_ARGS
|
|
Restart=always
|
|
RestartSec=10
|