Originally posted by: Nothinman
rpc.statd is part of NFS, probably the portmap or nfs-common service. lpd is the print server, probably cups or plain lpd. sunrpc is definately the portmap service.
Runlevels 0, 1, and 6 are reserved. Runlevel 0 is used to halt the sys-
tem, runlevel 6 is used to reboot the system, and runlevel 1 is used to
get the system down into single user mode. Runlevel S is not really
meant to be used directly, but more for the scripts that are executed
when entering runlevel 1. For more information on this, see the man-
pages for shutdown(8) and inittab(5).
Runlevels 7-9 are also valid, though not really documented. This is
because "traditional" Unix variants don't use them. In case you're
curious, runlevels S and s are in fact the same. Internally they are
aliases for the same runlevel.
Originally posted by: drag
The other runlevels are for anything else you want. Say you like to game so you want all the memory and cpu time to go the game. So you configure runlevel 3 to run nothing but X windows. Or you have a server and you want X (along with the print servers, xft server and whatever else) so you configure 4 to run all that stuff and then 2 to run just your services.
Also runlevel 0 is shutdown and 6 is reboot (or visa versa or something like that, I forget).
That way you can switch between stuff with a simple "telinit" command.
For instance in redhat runlevel 5 is multiuser with X, and runlevel 3 is multiuser without X. Makes it easier to install nvidia drivers for instance.
You can also run the scripts manually. To shut off lpd (at least on my system it's a seperate thing that annoyingly gets installed along with gnome or X or something) you go:
/etc/init.d/lpd stop
And that should stop it. If you make changes to sshd config (say to allow X11 forwarding) you have to restart the services to make it go into effect, so you go:
/etc/init.d/sshd restart
(could be just ssh, I don't remember fer'shure)
tcp 0 0 *:1024 *:* LISTEN 191/rpc.statd
tcp 0 0 *rinter *:* LISTEN 203/lpd
tcp 0 0 *:sunrpc *:* LISTEN 130/
Originally posted by: n0cmonkey
Just kill portmap. I'm thinking I will need to write a startup script to kill it on boot.
Originally posted by: drag
Originally posted by: n0cmonkey
Just kill portmap. I'm thinking I will need to write a startup script to kill it on boot.
update-rc.d portmap remove
That will remove portmap from your start up scripts. Also
/etc/init.d/portmap stop
should stop it. Any scripts that gets used in the runlevels, will be located in /etc/init.d/
Originally posted by: drag
Portmap is started in the /etc/rcS.d runlevel. It's something that is started up while it's still in single user mode along with stuff like the scripts that do your networking configurations.
I removed it just fine with:
update-rc.d -f portmap remove
And put it back in with
update-rc.d portmap defaults
now it's in ALL my runlevels, instead of just rcS.d, but go figure. I don't know how wise it is to do without your portmap stuff, though.
It's not like I like system-v stuff, it's to complicated and stupid, give me BSD style scripts anyday.![]()
If your worried about your kernel, just make a extra entry in your bootloader for the old one....![]()