dh_installinit upstart support start a job in postinst script regardless of previous status
Bug #690640 reported by
Alessandro Bono
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
debhelper (Ubuntu) |
Fix Released
|
High
|
Steve Langasek |
Bug Description
Binary package hint: debhelper
packages created with debhelper with an upstart job integrate on postinst script an unconditionally start, for example samba packages has this
# Automatically added by dh_installinit
if [ -e "/etc/init/
# start fails if already running
start smbd || :
fi
with this script on upgrade samba is started regardless of previous status
autoscripts/cat postinst-upstart
which contains original template for this script should be corrected to check status of job before start package
something like (metacode)
if (operation==upgrade and job.preupgrade.
start job
fi
Related branches
Changed in debhelper (Ubuntu): | |
importance: | Undecided → High |
status: | New → In Progress |
assignee: | nobody → Steve Langasek (vorlon) |
To post a comment you must log in.
This bug was fixed in the package debhelper - 8.0.0ubuntu2
---------------
debhelper (8.0.0ubuntu2) natty; urgency=low
* autoscripts postinst-upstart, prerm-upstart, prerm-upstart- norestart
need to use invoke-rc.d instead of calling start/stop directly, so that
they're well-behaved in chroots and other places policy-rc.d may be used.
LP: #690640.
-- Steve Langasek <email address hidden> Sun, 23 Jan 2011 12:38:00 -0800