systemd unit options [[packages/corosync] make sysconfig/corosync-notifyd usable for systemd]

Jakub Bogusz qboosh at pld-linux.org
Thu Nov 1 14:13:22 CET 2012


On Tue, Oct 30, 2012 at 08:40:23AM +0100, Jan Rękorajski wrote:
> On Mon, 29 Oct 2012, Jakub Bogusz wrote:
> 
> > On Mon, Oct 29, 2012 at 04:23:56PM +0100, jajcus wrote:
> > > commit ac647687b5d8c7bfb01cd7fc24ef36c23b10cc23
> > > Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
> > > Date:   Mon Oct 29 16:22:10 2012 +0100
> > > 
> > >     make sysconfig/corosync-notifyd usable for systemd
> > >     
> > >     The sysconfig file used by our init script would not be usable for
> > >     the sytemd unit got upstream.
> > 
> > > --- a/corosync-notifyd.sysconfig
> > > +++ b/corosync-notifyd.sysconfig
> > > @@ -1,12 +1,3 @@
> > >  
> > > -# Send SNMP traps on all events.
> > > -SEND_SNMP_TRAPS=no
> > > -
> > > -# SNMP Manager IP address (defaults to localhost).
> > > -#SNMP_MANAGER=
> > > -
> > > -# Send DBUS signals on all events.
> > > -SEND_DBUS_SIGNALS=yes
> > > -
> > > -# Log all events.
> > > -LOG_ALL_EVENTS=no
> > > +# log and signal over DBus all events
> > > +OPTIONS=-l -d
> > 
> > So systemd is so great everyone must learn all daemon options again,
> > like it was before SysV scripts/sysconfig were invented?
> > 
> > There are no upstream solutions?
> 
> Only simple environment variables usage.
> IMO it's not that big of a problem as often our sysconfig definitions
> contain only a random subset of daemon options forcing to mess with
> init script. With systemd it's at least clear - one have to read the
> manual if (s)he wants some special options.
> 
> What we can do in this case is to document the most usefull options
> in the sysconfig files.

That would be acceptable - document at least those options, which were
supported by SysV init script and add a pointer to documentation
(proper man page, text file or so) for full options list.


-- 
Jakub Bogusz    http://qboosh.pl/


More information about the pld-devel-en mailing list