You can rename links in /etc/rc0.d/ rc1.d/ rc2.d/ rc3.d/ rc4.d/ rc5.d/ rc6.d/ rcS.d/ to prevent services from starting. For example, I don't want NFS starting. So I renamed my nfs-common links to look like this:
rc0.d/K05nfs-common
rc1.d/K05nfs-common
rc2.d/K05nfs-common
rc3.d/K05nfs-common
rc4.d/K05nfs-common
rc5.d/K05nfs-common
rc6.d/K05nfs-common
rcS.d/K17nfs-common
Notice all the link names start with K instead of S. Just beware the following from the manual of update-rc.d:
Quote:
A common system administration error is to delete the links with the thought that this will "disable" the
service, i.e., that this will prevent the service from being started. However, if all links have been
deleted then the next time the package is upgraded, the package's postinst script will run update-rc.d
again and this will reinstall links at their factory default locations. The correct way to disable ser‐
vices is to configure the service as stopped in all runlevels in which it is started by default. In the
System V init system this means renaming the service's symbolic links from S to K.
|
Also know that stopping services will disable functionality, which may cause problems. Only disable them if you're absolutely sure you don't want their functionality.
Edited once more: rc0.d, rc1.d, rc6.d and rcS.d are special runlevels in which you shouldn't need to modify anything. Just search the webs for 'debian runlevel' to get a hint on what the different runlevels are for.