mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-14 11:04:29 +05:00
fix: stop/start dwc service when updating
This commit is contained in:
@@ -52,6 +52,18 @@ restart_klipper(){
|
||||
fi
|
||||
}
|
||||
|
||||
start_dwc(){
|
||||
status_msg "Starting DWC-for-Klipper-Socket Service ..."
|
||||
sudo systemctl start dwc
|
||||
ok_msg "DWC-for-Klipper-Socket Service started!"
|
||||
}
|
||||
|
||||
stop_dwc(){
|
||||
status_msg "Stopping DWC-for-Klipper-Socket Service ..."
|
||||
sudo systemctl stop dwc
|
||||
ok_msg "DWC-for-Klipper-Socket Service stopped!"
|
||||
}
|
||||
|
||||
start_moonraker(){
|
||||
if [ -e /etc/init.d/moonraker ]; then
|
||||
status_msg "Starting Moonraker Service ..."
|
||||
|
||||
@@ -33,14 +33,14 @@ update_klipper(){
|
||||
}
|
||||
|
||||
update_dwc2fk(){
|
||||
stop_klipper
|
||||
stop_dwc
|
||||
bb4u "dwc2"
|
||||
if [ ! -d $DWC2FK_DIR ]; then
|
||||
cd ${HOME} && git clone $DWC2FK_REPO
|
||||
else
|
||||
cd $DWC2FK_DIR && git pull
|
||||
fi
|
||||
start_klipper
|
||||
start_dwc
|
||||
}
|
||||
|
||||
update_dwc2(){
|
||||
|
||||
Reference in New Issue
Block a user