debian/postinst
changeset 26 767f79e69de1
parent 5 7c7fc8906920
child 31 bbcb8a3366b4
--- a/debian/postinst
+++ b/debian/postinst
@@ -38,7 +38,8 @@
 	echo "Setting permissions for /var/lib/nobody/.mcbotrc to 600"
 	chmod 600 /var/lib/nobody/.mcbotrc
 	echo "ENTER /etc/init.d/mcbot restart after editing .mcbotrc"
-	/etc/init.d/mcbot restart
+	update-rc.d mcbot defaults &>/dev/null
+	invoke-rc.d mcbot restart
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)