[H-GEN] Re: No SIGUP for xinetd?
Tony Nugent
tony at linuxworks.com.au
Tue Jul 22 21:33:32 EDT 2003
[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]
On Wed Jul 23 2003 at 10:14, Harry Phillips wrote:
> >>When you use xinetd you edit the file /etc/xinetd.d/proftp-xinetd file
> >>and there is no need for doing the kill -1... thingy.
> > Uhhh, really?
> (Harry starts doubting his memory)
> (Harry runs experiment on his box)
> (Harry doubts the results of experiment)
> (Harry searches Google)
>
> No, I was wrong, you do need to reload/restart xinetd :)
>
> On my Mandrake box the command is "/etc/init.d/xinet reload"
("service xinetd reload" or "/etc/init.d/xinetd reload" on redhat)
> So I was sort of right you don't have to do the kill -1... (but you do
> have to get xinetd to reload/restart :)
At least on redhat boxes, if chkconfig is used to manage xinetd
services (recommended when available - I suspect that mandrake has
it too), then these changes are initiated right away (since it
automatically tells xinetd to reload). (However, it doesn't auto
start/stop /etc/init.d/ services).
chkconfig can be a very useful little tool, eg:
# display the services activated at runlevel 3:
$ chkconfig --list | grep 3:on
# display the services NOT activated at runlevel 3:
$ chkconfig --list | grep 3:off
# show the state of all the xinetd services:
$ chkconfig --list | grep -v 3:o
# exactly mirror the rc bootup state of runlevel 3 to runlevel 4:
$ for s in $(chkconfig --list | grep 3:off | cut -d\ -f1) ; do \
chkconfig --level 4 $s off ; done
$ for s in $(chkconfig --list | grep 3:on | cut -d\ -f1) ; do \
chkconfig --level 4 $s on ; done
... etc.
It is a pity that xinetd (or inetd) can't be configured to run
different sets of services on a per-level basis (the daemon is
either running with the same set of services, or not running).
(Interesting... someone recently mentioned runlevels 7-9, chkconfig
doesn't handle that at all:)
> Regards,
> Harry Phillips
Cheers
Tony
--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'. See http://www.humbug.org.au/
More information about the General
mailing list