init-script status method doesn't handle instances correctly
Bug #1177398 reported by
Bjunity
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
memcached (Debian) |
Fix Released
|
Unknown
|
|||
memcached (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Line in /etc/init.
status_of_proc -p $PIDFILE $DAEMON $NAME && exit 0 || exit $?
If you have more than 1 Instance the script exit after the first instance found, so the other instances aren't checked.
The quick & dirty fix:
er_or=0
CONFIG_
.
.
.
.
status)
status_
if [ "$returnvalue" -ne "0" ]
then
fi
;;
*)
echo "Usage: $N {start|
exit 1
;;
esac
done;
if [ "$er_or" -ne "0" ]
then
exit 2
else
exit 0
fi
CVE References
Changed in memcached (Debian): | |
status: | Unknown → New |
Changed in memcached (Debian): | |
status: | New → Fix Released |
To post a comment you must log in.
Thank you for taking the time to report this bug and helping to make Ubuntu better.
You have not included any package version information in your report.
Looking at /etc/init. d/memcached supplied by 1.4.14-0ubuntu1, it looks to me that support for stopping multiple instances is already included. I haven't looked closely, but it isn't clear to me whether you are looking at an older version of the package, or are referring to the bug in the latest version that I'm looking at.
Please run:
apport-collect 1177398
on your affected machine to automatically attach all relevant versioning information to this bug. Once done, please change the bug status back to New.