The file /etc/init.d/mathkernel doesn't contain a LSB header and this causes issues when adding or removing other daemons using update-rc.d (usually called by as part of the installation or removal of the a daemon's package).
Solve this by adding a header. Specifically, add this to the start of /etc/init.d/mathkernel
Code: Select all
#!/bin/sh
#
# start/stop mathematica daemon.
### BEGIN INIT INFO
# Provides: mathematica
# Required-Start: $network $local_fs
# Required-Stop: $network $local_fs
# Default-Start: S 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Mathematica remote services
# Description: Allows remote use of Mathematica.
### END INIT INFO