[wplug] runlevel question
Alexandros Papadopoulos
apapadop at cmu.edu
Tue Jan 7 15:25:57 EST 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tuesday 07 January 2003 15:08, Doug Green wrote:
> I'm not sure that I know how to monitor a process while switching
> runlevels in this case. Let me be more specific- I want to run
> netatalk/atalkd, which (according to the docs) does NOT like to
> restart. In short, I need keep it running and avoid it from
> restarting despite switching runlevels as users log in/out of the
> machine. I guess I should keep it starting in runlevel 3 then??
I sense a misunderstanding here, why would the machine switch runlevels
when users log on/off? On most linux distributions, runlevel 5 is
defined as "runlevel 3 + graphical login".
So, if you want all logins to go through the GUI, you leave the machine
running at runlevel 5. If you want all users to have the normal text
login, you leave the machine running at runlevel 3.
Changing runlevels while users are logged on is unrealistic, since a
killall signal is sent whenever a runlevel change is performed. Think
of such a change as a soft reboot - it's not something you want to do
on a running machine, and can be performed only by root anyway. There
is no usable system "during" a runlevel change, all processes (except
init I guess) are killed and then the start scripts of the new runlevel
are executed. (at least that's the proper way of doing it, it wouldn't
surprise me if Red Hat does things its way)
Just set the talk daemon (and any supporting daemons like xinetd I
guess) to start in the runlevel you're going to use from now on, and
you'll be fine.
- -A
- --
http://andrew.cmu.edu/~apapadop/pub_key.asc
3DAD 8435 DB52 F17B 640F D78C 8260 0CC1 0B75 8265
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+GzfVgmAMwQt1gmURAo3gAJ9dx2JsQWvFmItAzD5Qgh5q/WxxKQCfQxZx
IGuVWicKOPDxpDuERXEWqg0=
=snSS
-----END PGP SIGNATURE-----
More information about the wplug
mailing list