Mathias Gug [2009-10-30 21:52 -0000]: > -exec avahi-daemon -D > +script > + opts="-D" > + [ -e "/etc/eucalyptus/avahi-daemon.conf" ] && opts="${opts} -f /etc/eucalyptus/avahi-daemon.conf"
Upstart scripts are "set -e" by default, so you are missing an "|| true" here. But even more, if /etc/eucalyptus/avahi-daemon.conf does not exist, you need to drop -D entirely (to use the default file). So I think you want
> -exec avahi-daemon -D > + [ -e "/etc/eucalyptus/avahi-daemon.conf" ] && conf="-f /etc/eucalyptus/avahi-daemon.conf" || : > + exec avahi-daemon -D $conf > +end script
Martin -- Martin Pitt | http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
Mathias Gug [2009-10-30 21:52 -0000]: s/avahi- daemon. conf" ] && opts="${opts} -f /etc/eucalyptus /avahi- daemon. conf"
> -exec avahi-daemon -D
> +script
> + opts="-D"
> + [ -e "/etc/eucalyptu
Upstart scripts are "set -e" by default, so you are missing an "|| /avahi- daemon. conf does
true" here. But even more, if /etc/eucalyptus
not exist, you need to drop -D entirely (to use the default file). So
I think you want
> -exec avahi-daemon -D s/avahi- daemon. conf" ] && conf="-f /etc/eucalyptus /avahi- daemon. conf" || :
> + [ -e "/etc/eucalyptu
> + exec avahi-daemon -D $conf
> +end script
Martin www.piware. de
--
Martin Pitt | http://
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)