--- 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 ];