missing parameter to status in upstart pre-stop script which is not needed regardless
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xinetd (Ubuntu) |
Invalid
|
Low
|
Unassigned |
Bug Description
PRETTY_NAME="Ubuntu 14.04.2 LTS"
SUPPORT_URL="http://
VERSION="14.04.2 LTS, Trusty Tahr"
Package: xinetd
Origin: Ubuntu
Maintainer: Ubuntu Core Developers <email address hidden>
Bugs: https:/
Version: 1:2.3.15-3ubuntu1
In the provided upstart configuration file /etc/init/
pre-stop script
xinetd_
[ -n "${xinetd_pid}" ] || exit 0
kill -QUIT "${xinetd_pid}"
end script
The status command as written will always echo the message
status: missing job name
Try `status --help' for more information.
which will go to stderr and so the variable xinetd_pid will always be blank.
This is because the jobname parameter has been omitted from the status command and thus the xinetd process is never killed.
Therefore the line should read
xinetd_
However because xinetd is running in non-daemon mode, upstart knows the pid of the running xinetd so successfully kills it.
Therefore the pre-stop script which is broken is not needed regardless and after removing the pre-stop script and testing with
start, stop, status and checking with ps, the xinetd process is successfully stopped and started, demonstrating that this snippet
should be removed because it is broken and pointless.
Status changed to 'Confirmed' because the bug affects multiple users.