[Bug 707479] Re: service <service> restart does not use an updated job configuration
Steve Langasek
steve.langasek at canonical.com
Thu Sep 29 21:35:17 UTC 2011
> 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
Foundations Bugs, which is subscribed to upstart in Ubuntu.
https://bugs.launchpad.net/bugs/707479
Title:
service <service> restart does not use an updated job configuration
Status in Upstart:
Won't Fix
Status in “upstart” package in Ubuntu:
Fix Released
Bug description:
Binary package hint: upstart
start a system using upstart. "ps axf" gives for one service converted to upstart:
862 ? Sl 0:00 /usr/sbin/libvirtd -d
now change /etc/init/libvirt-bin to exec "/usr/sbin/libvirtd -d" to "/usr/sbin/libvirtd -d --listen". Afterwards:
# service libvirt-bin restart
libvirt-bin start/running, process 895
# ps axf | grep libvirtd
895 ? Sl 0:00 /usr/sbin/libvirtd -d
You'll have to stop, then start libvirt-bin, to have the change made have any effect:
# service libvirt-bin stop
libvirt-bin stop/waiting
# service libvirt-bin start
# service libvirt-bin start
libvirt-bin start/running, process 928
# ps axf | grep libvirt
928 ? Sl 0:00 /usr/sbin/libvirtd -d --listen
ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: upstart 0.6.6-3
Uname: Linux 2.6.36.3 x86_64
Architecture: amd64
Date: Tue Jan 25 16:26:04 2011
ProcEnviron:
PATH=(custom, user)
LANG=de_DE.utf8
SHELL=/bin/bash
SourcePackage: upstart
To manage notifications about this bug go to:
https://bugs.launchpad.net/upstart/+bug/707479/+subscriptions
More information about the foundations-bugs
mailing list