[systemd-devel] [RFC] Preset Files

Ludwig Nussel ludwig.nussel at suse.de
Wed Jul 6 00:38:23 PDT 2011


Kay Sievers wrote:
> On Wed, Jul 6, 2011 at 00:42, Lennart Poettering <lennart at poettering.net> wrote:
> > On Wed, 06.07.11 00:26, Kay Sievers (kay.sievers at vrfy.org) wrote:
> >
> >> >> If "systemctl preset" is passed with unit names, those units would
> >> >> be enable/disabled as listed in the preset file. If no argument is
> >> >> passed all units would be reset to the preset defaults. (another
> >> >> long-sought feature...)
> >>
> >> We will require an argument. There will no 'change all services'
> >> logic.
> >
> > Uh?
> >
> > Actually, I do want a way how people can reset all service enable states
> > to what the vendor intended. And that should be "systemctl preset"
> > without arguments I believe.
> 
> That sounds pretty scary, it would usually just enable all installed
> services. This probably causes trouble with things like syslogs and
> login-managers that might be installed but only one of them should be
> enabled at the time. Not sure how that should really work.

There needs to be some global "apply preset now" command though.
During package installation the preset package(s) may get installed
after the actual services. You may also need to call that command
when switching presets for whatever reason.

cu
Ludwig

-- 
 (o_   Ludwig Nussel
 //\
 V_/_  http://www.suse.de/
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) 


More information about the systemd-devel mailing list