fix: make installer not fail if klipper is installed as systemd service
If Klipper is installed as systemd service, the script would fail and exit at step 6 (corrected that typo) when trying to stop Klipper via init.d. Changing the used command to systemctl will be compatible with both init.d and systemd services. Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
parent
413062f8e8
commit
374d984ced
|
@ -69,13 +69,13 @@ MOONRAKER_ARGS="${SRCDIR}/moonraker/moonraker.py"
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
# Step 4: Start server
|
# Step 6: Start server
|
||||||
start_software()
|
start_software()
|
||||||
{
|
{
|
||||||
report_status "Launching Moonraker API Server..."
|
report_status "Launching Moonraker API Server..."
|
||||||
sudo /etc/init.d/klipper stop
|
sudo systemctl stop klipper
|
||||||
sudo /etc/init.d/moonraker restart
|
sudo /etc/init.d/moonraker restart
|
||||||
sudo /etc/init.d/klipper start
|
sudo systemctl start klipper
|
||||||
}
|
}
|
||||||
|
|
||||||
# Helper functions
|
# Helper functions
|
||||||
|
|
Loading…
Reference in New Issue