gentoo: use /var/run for new /run compatibility
[util-vserver.git] / debian / util-vserver-legacy.prerm
index 6e54d47..fe88094 100755 (executable)
@@ -1,10 +1,8 @@
 #!/bin/sh
 
 if test "$1" = remove; then
-    /etc/init.d/rebootmgr stop > /dev/null 2>&1
-    update-rc.d rebootmgr remove
-    update-rc.d vservers-legacy remove
+    /etc/init.d/rebootmgr stop >/dev/null 2>&1 || :
     for i in httpd named portmap sendmail smb sshd xinetd gated; do
-       update-rc.d v_$i remove
+       /etc/init.d/v_$i stop >/dev/null 2>&1 || :
     done
 fi