So I’m doing some server/hdd moves etc.. that will be temporary. So I wanted to disable some of my services that rely on those mounts etc.. Rather than completely change runlevels the daemon starts and stops on (update-rc.d) or messing with symlinks in /etc/rc2.d, I found a much easier way:

Disable daemon from any runlevels: # insserv -r

Enable daemon again. It will keep any runlevels it previously had. # insserv


EDIT: On ubuntu, install chkconfig and run a:

chkconfig -s off

Mario Loria is a builder of diverse infrastructure with modern workloads on both bare-metal and cloud platforms. He's traversed roles in system administration, network engineering, and DevOps. You can learn more about him here.