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: creating a set of systemd RPM macros across distributions ?

2011-07-06 Thread Frederic Crozat
Le mercredi 06 juillet 2011 à 13:51 +0200, Kay Sievers a écrit : On Wed, Jul 6, 2011 at 11:15, Frederic Crozat fcro...@suse.com wrote: Le mardi 05 juillet 2011 à 23:39 +0200, Lennart Poettering a écrit : The simple fact is that we need a dependency on systemd anyway in the RPMS to get the

Re: [systemd-devel] F15: wrong cgroup?

2011-07-06 Thread Michał Piotrowski
W dniu 6 lipca 2011 14:28 użytkownik Kay Sievers kay.siev...@vrfy.org napisał: 2011/7/6 Michał Piotrowski mkkp...@gmail.com: I use sudo to start my deamons. $ ps xawf -eo pid,user,cgroup,args show that daemons are in my personal cgroups /sys/fs/cgroup/systemd/user/michal  1483 root    

[systemd-devel] [PATCH] Fix compilation without ACL

2011-07-06 Thread Zbigniew Jędrzejewski-Szmek
Compilation fails if sys/acl.h is not available. The configure script already tests for sys/acl.h presence, but the result was so far unused. To compile without acl, stub implementations of the acl functions are used. --- Makefile.am |9 ++--- src/logind-acl.h | 14

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

[systemd-devel] what does systemd do if the syslogd errs on start?

2011-07-06 Thread Rainer Gerhards
Hi all, I hope this is the right list. I wonder what systemd does if the syslogd does not start when told to do so. Reason behind this question: in rsyslog, I try hard to record messages even if rsyslog.conf is screwed up. For that reason, I accept partially complete configs. And if things go

Re: [systemd-devel] what does systemd do if the syslogd errs on start?

2011-07-06 Thread Lennart Poettering
On Wed, 06.07.11 16:11, Rainer Gerhards (rgerha...@gmail.com) wrote: Hi all, I hope this is the right list. I wonder what systemd does if the syslogd does not start when told to do so. Reason behind this question: in rsyslog, I try hard to record messages even if rsyslog.conf is screwed

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