manual start, upgrade and debhelper

Alessandro Bono alessandro.bono at
Wed Dec 15 11:20:48 UTC 2010

Hi all

with new upstart is possible to force manual start adding "manual" to
job configuration, but this is a modification of configuration file like
commenting out "start on"
on upgrade if package has a new configuration file dpkg suggest to
overwrite old one, so after upgrade I have to readd "manual" stanza if I
want new configuration file 
Is it correct?

another problem is debhelper default postinst script for upstart job
that add to packages a start job unconditionally, for example for samba

# Automatically added by dh_installinit
if [ -e "/etc/init/smbd.conf" ]; then
        # start fails if already running
        start smbd || :

on slave node of a highavailabilty cluster it's not possible to upgrade
package without creating problems

rules should be start a job iff is already running!

Am I missing something?

Cordiali Saluti
Alessandro Bono

More information about the upstart-devel mailing list