[Bug 690640] [NEW] dh_installinit upstart support start a job in postinst script regardless of previous status
Launchpad Bug Tracker
690640 at bugs.launchpad.net
Tue Jan 25 18:58:51 UTC 2011
You have been subscribed to a public bug by Steve Langasek (vorlon):
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/smbd.conf" ]; then
# 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.status==start and exist(job.conf)) then
start job
fi
** Affects: debhelper (Ubuntu)
Importance: High
Assignee: Steve Langasek (vorlon)
Status: Fix Released
--
dh_installinit upstart support start a job in postinst script regardless of previous status
https://bugs.launchpad.net/bugs/690640
You received this bug notification because you are a member of Ubuntu Server Team, which is a direct subscriber.
More information about the Ubuntu-server-bugs
mailing list