Re: [systemd-devel] [RFC] Preset Files

2011-07-07 Thread Tollef Fog Heen
]] Lennart Poettering | 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...) I'd like this to be systemctl preset --all

Re: [systemd-devel] [RFC] Preset Files

2011-07-07 Thread Lennart Poettering
On Thu, 07.07.11 10:14, Tollef Fog Heen (tfh...@err.no) wrote: Heya, | Anyway, this of course requires some buy-in from the distributions, so | I'd like to ask the distro maintainers for comments on this. Do you | think this would be useful to you? Any other suggestions, ideas? Debian

Re: [systemd-devel] [RFC] Preset Files

2011-07-06 Thread Ludwig Nussel
Lennart Poettering wrote: snip disable avahi-daemon.service enable cups.service disable * /snip I suppose evaluation stops as soon as an entry matches. So as Distro we could have e.g 99-default disable * as default policy. - The RPM post macro would always call systemctl preset for the

Re: [systemd-devel] [RFC] Preset Files

2011-07-06 Thread Ludwig Nussel
Kay Sievers wrote: On Wed, Jul 6, 2011 at 00:42, Lennart Poettering lenn...@poettering.net wrote: On Wed, 06.07.11 00:26, Kay Sievers (kay.siev...@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

Re: [systemd-devel] [RFC] Preset Files

2011-07-06 Thread Michal Schmidt
On Wed, 6 Jul 2011 00:42:25 +0200 Lennart Poettering wrote: 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 would be too easy to run accidentally. They can run: cd

Re: [systemd-devel] [RFC] Preset Files

2011-07-06 Thread Frederic Crozat
Le mardi 05 juillet 2011 à 21:21 +0200, Lennart Poettering a écrit : Heya, many of you probably saw Frederic's rpm macros suggested here. This got Kay and me thinking about implementing something like presets in systemd, and before we go and implement that we'd like to hear your opinions on

Re: [systemd-devel] [RFC] Preset Files

2011-07-06 Thread Andreas Jaeger
On Tuesday, July 05, 2011 21:21:03 Lennart Poettering wrote: Heya, many of you probably saw Frederic's rpm macros suggested here. This got Kay and me thinking about implementing something like presets in systemd, and before we go and implement that we'd like to hear your opinions on it.

Re: [systemd-devel] [RFC] Preset Files

2011-07-06 Thread Lennart Poettering
On Wed, 06.07.11 10:34, Frederic Crozat (fcro...@suse.com) wrote: Le mardi 05 juillet 2011 à 21:21 +0200, Lennart Poettering a écrit : Heya, many of you probably saw Frederic's rpm macros suggested here. This got Kay and me thinking about implementing something like presets in

Re: [systemd-devel] [RFC] Preset Files

2011-07-06 Thread Bill Nottingham
Michal Schmidt (mschm...@redhat.com) said: On Wed, 6 Jul 2011 00:42:25 +0200 Lennart Poettering wrote: 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 would be too

Re: [systemd-devel] [RFC] Preset Files

2011-07-06 Thread Marius Tolzmann
hi.. On 07/06/11 16:25, Lennart Poettering wrote: On Wed, 06.07.11 01:07, Marius Tolzmann (tolzm...@molgen.mpg.de) wrote: i am just afraid that someday 'systemctl preset' will break my setup even if a havn't defined 'enable/disable *' anywhere. Yes, it's a dangerous tool, but I think

Re: [systemd-devel] [RFC] Preset Files

2011-07-06 Thread Lennart Poettering
On Wed, 06.07.11 10:31, Bill Nottingham (nott...@redhat.com) wrote: Michal Schmidt (mschm...@redhat.com) said: On Wed, 6 Jul 2011 00:42:25 +0200 Lennart Poettering wrote: Actually, I do want a way how people can reset all service enable states to what the vendor intended. And that

[systemd-devel] [RFC] Preset Files

2011-07-05 Thread Lennart Poettering
Heya, many of you probably saw Frederic's rpm macros suggested here. This got Kay and me thinking about implementing something like presets in systemd, and before we go and implement that we'd like to hear your opinions on it. This would go hand in hand with Frederic's macros, and both would be

Re: [systemd-devel] [RFC] Preset Files

2011-07-05 Thread Lennart Poettering
On Wed, 06.07.11 00:51, Kay Sievers (kay.siev...@vrfy.org) wrote: On Wed, Jul 6, 2011 at 00:42, Lennart Poettering lenn...@poettering.net wrote: On Wed, 06.07.11 00:26, Kay Sievers (kay.siev...@vrfy.org) wrote: If systemctl preset is passed with unit names, those units would be

Re: [systemd-devel] [RFC] Preset Files

2011-07-05 Thread Kay Sievers
On Wed, Jul 6, 2011 at 01:07, Marius Tolzmann tolzm...@molgen.mpg.de wrote: On 06.07.2011 00:51, Kay Sievers wrote: On Wed, Jul 6, 2011 at 00:42, Lennart Poetteringlenn...@poettering.net  wrote: We will require an argument. There will no 'change all services' logic. Uh? Actually, I do