Public bug reported:

Binary package hint: xinetd

xinetd handles comments in service configuration files fine when it is
started/restarted.  However, when it reloads configuration files (on HUP
signal), it fails to parse the same files.  For example, given the
following (partial) configuration file:

        disable         = no
        only_from       = 0.0.0.0/0 # recommended to put the IPs that need
                                    # to connect exclusively (security purposes)
}

on reload the following errors would be seen in syslog, and the service
in question would be taken offline:

Apr 19 11:47:22 adbmaster xinetd[19231]: Reading included configuration file: 
/etc/xinetd.d/yourservice [file=/etc/xinetd.d/yourservice] [line=26]
Apr 19 11:47:22 adbmaster xinetd[19231]: failed to parse # 
[file=/etc/xinetd.d/yourservice] [line=13]
Apr 19 11:47:23 adbmaster xinetd[19231]: failed to parse recommended 
[file=/etc/xinetd.d/yourservice] [line=13]
Apr 19 11:47:23 adbmaster xinetd[19231]: failed to parse put 
[file=/etc/xinetd.d/yourservice] [line=13]
Apr 19 11:47:23 adbmaster xinetd[19231]: failed to parse the 
[file=/etc/xinetd.d/yourservice] [line=13]
Apr 19 11:47:23 adbmaster xinetd[19231]: failed to parse IPs 
[file=/etc/xinetd.d/yourservice] [line=13]
Apr 19 11:47:23 adbmaster xinetd[19231]: failed to parse that 
[file=/etc/xinetd.d/yourservice] [line=13]
Apr 19 11:47:23 adbmaster xinetd[19231]: failed to parse need 
[file=/etc/xinetd.d/yourservice] [line=13]

xinetd should parse configuration files the same way on reload that it
does on regular start.

We hit this surprising behavior when we upgraded an unrelated package
(postfix) which ran the update-inetd script, causing an xinetd reload.

** Affects: xinetd (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to xinetd in Ubuntu.
https://bugs.launchpad.net/bugs/765367

Title:
  xinetd fails to parse config files with comments when HUPped

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to