Public bug reported:

The init.d script for xinetd seems to have some issues. If it's started
before the upstart script, two instances of xinetd can be running.

Also, the .pid file location in the init.d script is a different
location than the upstart script. While more checks should be done in
the init.d script to see if an instance is already running, making both
.pid files the same would do a lot to help this issue.

Steps to reproduce:

root@pslchi6ddevtest1:/etc/init.d# /etc/init.d/xinetd start
 * Starting internet superserver xinetd                                         
                                                                                
    [ OK ] 
root@pslchi6ddevtest1:/etc/init.d# service xinetd start
xinetd start/running, process 11941
root@pslchi6ddevtest1:/etc/init.d# ps -ef |grep xinet
root      11933      1  0 13:58 ?        00:00:00 /usr/sbin/xinetd -pidfile 
/run/xinetd.pid -stayalive -inetd_compat -inetd_ipv6
root      11941      1  0 13:58 ?        00:00:00 /usr/sbin/xinetd -dontfork 
-pidfile /var/run/xinetd.pid -stayalive -inetd_compat -inetd_ipv6
root      11947  10857  0 13:59 pts/1    00:00:00 grep --color=auto xinet

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: xinetd 1:2.3.15-3ubuntu1
ProcVersionSignature: Ubuntu 3.13.0-44.73-generic 3.13.11-ckt12
Uname: Linux 3.13.0-44-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.6
Architecture: amd64
Date: Fri Feb 13 14:18:59 2015
ProcEnviron:
 SHELL=/bin/bash
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 LANGUAGE=en_US:en
SourcePackage: xinetd
UpgradeStatus: No upgrade log present (probably fresh install)

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


** Tags: amd64 apport-bug trusty

-- 
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/1421824

Title:
  xinetd init.d Script Can Cause Multiple Instances to Run

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xinetd/+bug/1421824/+subscriptions

-- 
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