I am using insserv -r nfs-common
to disable RPC. How do I know if it worked? Is there a way to list the services starting up? Is it supposed to disappear from /etc/init.d
(because it still there)?
I am using insserv -r nfs-common
to disable RPC. How do I know if it worked? Is there a way to list the services starting up? Is it supposed to disappear from /etc/init.d
(because it still there)?
After rebooting, look at
ps auxw | grep rpc.statd
, if you see it as a running process it's still running.This is one way...
From this, I know run-level 2 is the level the machine boots into... now look at
/etc/rc2.d
Anything that has an "S" at the beginning is started at boot. Anything with a "K" at the beginning does not start at boot.
All the startup scripts symlink to
/etc/init.d
, so the rpc startup script should still be there. Look at/etc/rcX.d
to know for sureYou could try installing rcconf via aptitude. It lists services that are started on boot. Rcconf will list all installed services -- services that start on boot are clearly marked. To run rcconf simply run rcconf as root.
chkconfig method
For the height of laziness / efficiency, you can also use
chkconfig
To see how
portmap
,nfs-common
, andnfs-kernel-server
are used at all runlevels...To disable
portmap
,nfs-common
, andnfs-kernel-server
at all runlevels...