Bug 22235: (follow-up) Make koha-remove stop SIP server if required
[koha.git] / debian / scripts / koha-remove
index 0684780..94f5915 100755 (executable)
@@ -78,7 +78,7 @@ eof
 
     # Stop the Zebra server if needed
     if is_zebra_running $name; then
-        koha-stop-zebra $name || /bin/true
+        koha-zebra --stop $name || /bin/true
     fi
     # Stop the indexer daemon if needed
     if is_indexer_running $name; then
@@ -88,6 +88,10 @@ eof
     if is_plack_running $name; then
         koha-plack --stop $name || /bin/true
     fi
+    # Stop the SIP server if needed
+    if is_sip_running $name; then
+        koha-sip --stop $name || /bin/true
+    fi
 
     instancefile=$(get_apache_config_for $name)
     le_opacdomain=$(letsencrypt_get_opacdomain_for $name)