manual start, upgrade and debhelper

James Hunt james.hunt at canonical.com
Wed Dec 15 11:44:20 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Alessandro,

On 15/12/10 11:20, Alessandro Bono wrote:
> 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?
Yes, but the manual stanza is the first step towards supporting
"override files", which will do what you want. See:

  https://wiki.ubuntu.com/FoundationsTeam/Specs/MaverickFinishUpstart

> 
> 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 || :
> fi
> 
> 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?
> 
Please can you raise a bug on launchpad.net so we can investigate this?

Kind regards,

James.
- --
James Hunt
____________________________________
Ubuntu Foundations Team, Canonical.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0IqhAACgkQYBWEaHcQG9eWYACeNRmh8tVFX/HKse4N7/xkHIUL
fv0AnAig8OU+bswR5SC9hgk/27AefzyP
=flNY
-----END PGP SIGNATURE-----



More information about the upstart-devel mailing list