debian/preinst
changeset 26 767f79e69de1
parent 0 586472add385
child 31 bbcb8a3366b4
--- a/debian/preinst
+++ b/debian/preinst
@@ -18,7 +18,7 @@
     install|upgrade)
 	if [ -x /etc/init.d/mcbot ]; 
 	then
-		/etc/init.d/mcbot stop;
+		invoke-rc.d mcbot stop;
 	fi
 
 	if [ -f /var/lib/nobody/.mcbotrc ];