]> git.proxmox.com Git - pve-manager-legacy.git/commitdiff
use service command to stop old daemons
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 20 Jan 2015 11:32:45 +0000 (12:32 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 20 Jan 2015 11:32:45 +0000 (12:32 +0100)
debian/preinst

index 343b30a6bd92908696e3e419a6705ae615c914c6..0fe385b51e22bd76b9d0aa6129492599a8841d7f 100644 (file)
@@ -12,10 +12,9 @@ case "$1" in
                echo "Detected old pve-manager version - using stop/start to restart daemons"
                for i in ${DAEMONS}; do
                    if [ -e "/usr/bin/$i" ]; then
-                       /usr/bin/$i stop
+                       service $i stop
                    fi
                done
-
                sleep 2
            fi
        fi