disabling services on boot
Kees Cook
kees at ubuntu.com
Fri Aug 29 22:15:22 UTC 2008
Hi,
On Fri, Aug 29, 2008 at 04:30:18PM -0500, James Dinkel wrote:
> I want to disable a couple services from starting at boot on Ubuntu JEOS
> 8.04.1. Would the proper way be to just delete the symlinks in the
> /etc/rc#.d/ folders?
I've tended to use:
if [ -f /etc/init.d/$SERV ]; then
/usr/sbin/invoke-rc.d $SERV stop
/usr/sbin/update-rc.d $SERV remove
fi
where SERV is the service I want to stop and leave disabled.
("update-rc.d ... remove" basically does what you were suggesting.)
-Kees
--
Kees Cook
Ubuntu Security Team
More information about the ubuntu-server
mailing list