[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#727708: upstart and upgrading from sysvinit scripts



On Sat, 28 Dec 2013 at 16:45:38 -0800, Russ Allbery wrote:
> The second supported option is DAEMON_OPTS, which sets additional flags to
> add to the process.  For as long as we need to support multiple init
> systems, this option needs to stay in /etc/default/lbcd and be read from
> there by all supported init systems so that configuration is preserved as
> the user moves between init systems.

I'd like to suggest that this should only be done for daemons where there
is anything that a sysadmin can sensibly configure in this way. The patch
proposed for #712167 (native Upstart init support in dbus) did this, but
after checking the available command-line options in dbus-daemon, I couldn't
actually find any command-line options that can be changed by a sysadmin
without breaking system integration; so I think it's OK that the systemd
unit doesn't read /etc/default/dbus, and I don't think the (potential future)
Upstart job should either.

If dbus-daemon had command-line options that made sense as local configuration,
then reading /etc/default/dbus would be fine, but I've tried to avoid that
in favour of having anything locally-configurable only be available in the
(XML) configuration files, and not on the command-line: see
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=712167#20 for more on
command-line options vs. configuration.

(Perhaps this means /etc/init.d/dbus should stop reading /etc/default/dbus...)

    S


Reply to: