xinetd init.d Script Can Cause Multiple Instances to Run
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xinetd (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
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@pslchi6dde
* Starting internet superserver xinetd [ OK ]
root@pslchi6dde
xinetd start/running, process 11941
root@pslchi6dde
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
ProcVersionSign
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)
Status changed to 'Confirmed' because the bug affects multiple users.