> I have opened bug #731225 upstream to fix the documentation of restart.
> Meanwhile we will need to fix anything that uses 'restart' to use 'stop/start'
> where it may have assumed restart was reloading job configuration. I think
> the first place to start is the restart stanza of upstart-job, which does run
> 'start' on the job if its not running (another side effect of the $0 stop ; $0
> start convention), but if the job is running, will still not reload the job
> config file.

/lib/init/upstart-job already does this from natty on:


restart)
[...]
    if status "$JOB" 2>/dev/null | grep -q ' start/'; then
        RUNNING=1
    fi
    if [ -n "$RUNNING" ] ; then
        stop "$JOB"
    fi
    start "$JOB"
    ;;

Marking as fixed.

** Changed in: upstart (Ubuntu)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/707479

Title:
  service <service> restart does not use an updated job configuration

To manage notifications about this bug go to:
https://bugs.launchpad.net/upstart/+bug/707479/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to