supervisor init script restart fails

Bug #1021700 reported by Mark Marsella on 2012-07-06
38
This bug affects 8 people
Affects Status Importance Assigned to Milestone
supervisor (Ubuntu)
Undecided
Unassigned

Bug Description

Package: supervisor 3.0a8-1.1
Description: Ubuntu 12.04 LTS
Release: 12.04

I expected to call /etc/init.d/supervisor restart and see evidence of it restarting in the log.
There was no evidence in the log, when I did /etc/initd/supervisor stop then /etc/initd/supervisor start it did show evidence in the log for supervisor that it had restarted.

The init.d script for supervisor fails to restart, the restart case calls stop and start on start-stop-daemon but the stop has incorrect parameters. Below is the fixed code (no --exec parameter in the stop part)

 restart)
    echo -n "Restarting $DESC: "
    start-stop-daemon --stop --pidfile \
        $PIDFILE
    [ -n "$DODTIME" ] && sleep $DODTIME
    start-stop-daemon --start --pidfile \
        $PIDFILE --exec $DAEMON -- $DAEMON_OPTS
    echo "$NAME."
    ;;

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in supervisor (Ubuntu):
status: New → Confirmed
Berto (bertosmailbox) wrote :

I ran into this myself and fixed it with the attached patch. Comments welcome!

The attachment "Update "restart" so it behaves identical to "stop then start"" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers