Re: restarting xinetd

From: Rick Stevens (rstevens_at_vitalstream.com)
Date: 02/11/04

  • Next message: Ben Steeves: "Re: What's a good WM for a DX4-100 w/ 16Mb"
    To: fedora-list@redhat.com
    Date: Wed, 11 Feb 2004 14:03:02 -0800
    
    

    don wrote:
    > I added a new "service definition" to /etc/xinetd.d directory and now I
    > want to restart xinetd so the new definition is picked up.
    >
    > How can I tell if xinetd actually restarted?
    > I use su - to get to root, then kill -s SIGHUP <pid>
    > where <pid> is the pid for xinetd as returned by ps -A|grep inet
    >
    > I was expecting some messages like "xinetd shutting down/restarting", but
    > the kill command just ends and I'm back at a command prompt.
    >
    > Then I thought maybe it does it "quietly", but the pid number never
    > changed.... maybe it just re-reades the config file without saying
    > anything...

    Sending a SIGHUP to xinetd doesn't kill it and restart it. xinetd
    specifically traps SIGHUP. When it receives the signal, it rereads
    its config file, drops connections to services that are no longer
    enabled, verifies that existing connections are OK based on any new
    access restrictions, and drops arbitrary connections to match limits
    on a given service. The same old xinetd is running, but with a new
    configuration.

    xinetd logs via syslogd to the /var/log/messages file. If you examine
    that file, you'll see xinetd telling you what is going on.
    ----------------------------------------------------------------------
    - Rick Stevens, Senior Systems Engineer rstevens@vitalstream.com -
    - VitalStream, Inc. http://www.vitalstream.com -
    - -
    - Jimmie crack corn and I don't care...what kind of lousy attitude -
    - is THAT to have, huh? -- Dennis Miller -
    ----------------------------------------------------------------------

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Ben Steeves: "Re: What's a good WM for a DX4-100 w/ 16Mb"

    Relevant Pages

    • Re: xinetd.d listening twice on port 69
      ... | permissions Q, are you referring to the dir tftpboot.? ... | by, xinetd process user..? ... the options in /etc/xinetd.d/tftp and restart xinetd, ...
      (Fedora)
    • Re: Installed Fedora, Cant ftp to Fedora machine from Windows PC?
      ... the xinetd config file for telnet is /etc/xinetd.d/telnet ... >For telnet, an xinetd.d config file is provided. ... You restart it by ...
      (comp.os.linux.setup)
    • Re: restarting xinetd
      ... > want to restart xinetd so the new definition is picked up. ... > the kill command just ends and I'm back at a command prompt. ... maybe it just re-reades the config file without saying ...
      (Fedora)
    • RE: restarting xinetd
      ... > I want to restart xinetd so the new definition is picked up. ... maybe it just re-reades the config file without saying ... How about "service xinetd restart"? ...
      (Fedora)
    • Re: restarting xinetd
      ... =>want to restart xinetd so the new definition is picked up. ... =>where <pid> is the pid for xinetd as returned by ps -A|grep inet ... Stranger things have .0. ...
      (Fedora)