Public bug reported:

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: Undecided
         Status: New

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

Title:
  dh_installinit upstart support start a job in postinst script regardless of 
previous status

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

Reply via email to