Re: [systemd-devel] systemd kills mdmon if it was started manually by user

2011-02-08 Thread Lennart Poettering
On Tue, 08.02.11 16:54, Andrey Borzenkov (arvidj...@mail.ru) wrote: > >> a) mdmon is perfectly capable of restarting, it is already used to > >> take over mdmon launched in initrd. The problem is to know when to > >> restart - i.e. when respective libraries are changed. This is a job > >> for pack

Re: [systemd-devel] systemd restart patch

2011-02-08 Thread Lennart Poettering
On Tue, 08.02.11 14:28, Cristian Patrascu (cristian.patra...@windriver.com) wrote: > >I think tis current behaviour probably makes little sense, so my > >suggestion would be to simply change it and run the services listed in > >OnFailure= only after we tried to restart the service and gave up. >

Re: [systemd-devel] systemd kills mdmon if it was started manually by user

2011-02-08 Thread Andrey Borzenkov
On Tue, Feb 8, 2011 at 2:07 PM, Lennart Poettering wrote: > On Tue, 08.02.11 13:52, Andrey Borzenkov (arvidj...@mail.ru) wrote: > >> I am probably the wrong one to ask, but here is what happens when >> array is started (from udev perspective) > > [...] > >> After this event device goes "plugged" a

Re: [systemd-devel] [lenn...@kemper.freedesktop.org: [systemd-commits] src/pam-module.c]

2011-02-08 Thread Andrey Borzenkov
On Tue, Feb 8, 2011 at 3:11 PM, Lennart Poettering wrote: > > Well, yes. ps supresses the output if a process is in the root group of > a hierarchy, because by default all processes are in the default > group. To get the full list of cgorup memberships you could look into > /proc/$(pidof rtkit-dae

Re: [systemd-devel] systemd restart patch

2011-02-08 Thread Cristian Patrascu
On 02/08/2011 12:34 PM, Lennart Poettering wrote: On Mon, 07.02.11 10:01, Cristian Patrascu (cristian.patra...@windriver.com) wrote: On 02/03/2011 11:19 PM, Michael Biebl wrote: 2011/2/3 Tomasz Torcz: On Thu, Feb 03, 2011 at 09:35:55PM +0100, Michael Biebl wrote: ExecStartOnFailure=/some/cm

Re: [systemd-devel] systemd "hangs" for several minutes on shutdown if it gets "service force-reload" request

2011-02-08 Thread Lennart Poettering
On Sat, 29.01.11 09:47, Eugeni Dodonov (eug...@mandriva.com) wrote: > Don't know if it is possible, but the following would be almost ideal > debugging thing for cases I am having problems with - something like a > signal which systemd would catch and dump everything it is doing right > now; or du

Re: [systemd-devel] [lenn...@kemper.freedesktop.org: [systemd-commits] src/pam-module.c]

2011-02-08 Thread Lennart Poettering
On Tue, 08.02.11 14:52, Andrey Borzenkov (arvidj...@mail.ru) wrote: > >> I speak about failure of rtkit-daemon to put itself in RT scheduling > >> group on startup. At this point there is no login at all. > >> > >> Anyway, I rebuild systemd with your PAM patch and restarted system and > >> as expe

Re: [systemd-devel] systemd and sshd.socket/sshd@.service

2011-02-08 Thread Lennart Poettering
On Tue, 08.02.11 14:49, Vasiliy G Tolstov (v.tols...@selfip.ru) wrote: > > Oh, intreresting. It's in "failed" state. Can you check syslog/kmsg if > > systemd generated any kind of log output when this happened? i.e. around > > Mon, 07 Feb 2011 22:36:51 +0300. This should give us a hint on what > >

Re: [systemd-devel] [PATCH] initial support ALTLinux

2011-02-08 Thread Alexey Shabalin
On Tue, Feb 8, 2011 at 2:56 PM, Lennart Poettering wrote: > But please begin now to adopt the generic distro-agnostic configuration > files we support in systemd. Sooner or later the distribution-specific > code in systemd will be removed at which time you'd have to continue to > maintain this code

Re: [systemd-devel] [PATCH] build-sys: make less noise when checking file

2011-02-08 Thread Lennart Poettering
On Wed, 26.01.11 18:10, Lucas De Marchi (lucas.demar...@profusion.mobi) wrote: > There's already a condition that gives a warning if user is > cross-compiling an relying on files from the build system. AC_CHECK_FILE > macro only tests for file in the build system. Hence use a simple > 'test -f' th

Re: [systemd-devel] [PATCH] initial support ALTLinux

2011-02-08 Thread Lennart Poettering
On Wed, 26.01.11 16:46, Alexey Shabalin (a.shaba...@gmail.com) wrote: > Hi all! > I added basic support for ALTLinux. > Please see patch or > http://git.altlinux.org/people/shaba/packages/systemd.git?p=systemd.git;a=shortlog;h=refs/heads/altlinux > Thanks. Applied. But please begin now to adopt

Re: [systemd-devel] [lenn...@kemper.freedesktop.org: [systemd-commits] src/pam-module.c]

2011-02-08 Thread Andrey Borzenkov
On Tue, Feb 8, 2011 at 2:42 PM, Lennart Poettering wrote: > On Tue, 08.02.11 14:22, Andrey Borzenkov (arvidj...@mail.ru) wrote: > >> >> On Tue, Feb 8, 2011 at 1:36 PM, Lennart Poettering >> wrote: >> > On Tue, 08.02.11 13:30, Andrey Borzenkov (arvidj...@mail.ru) wrote: >> > >> >> >> >> On Tue, Fe

Re: [systemd-devel] systemd and sshd.socket/sshd@.service

2011-02-08 Thread Vasiliy G Tolstov
On Tue, 2011-02-08 at 11:50 +0100, Lennart Poettering wrote: > On Tue, 08.02.11 13:41, Vasiliy G Tolstov (v.tols...@selfip.ru) wrote: > > > > > On Tue, 2011-02-08 at 11:09 +0100, Lennart Poettering wrote: > > > On Mon, 07.02.11 18:49, Vasiliy G Tolstov (v.tols...@selfip.ru) wrote: > > > > > > >

Re: [systemd-devel] [lenn...@kemper.freedesktop.org: [systemd-commits] src/pam-module.c]

2011-02-08 Thread Lennart Poettering
On Tue, 08.02.11 14:22, Andrey Borzenkov (arvidj...@mail.ru) wrote: > > On Tue, Feb 8, 2011 at 1:36 PM, Lennart Poettering > wrote: > > On Tue, 08.02.11 13:30, Andrey Borzenkov (arvidj...@mail.ru) wrote: > > > >> > >> On Tue, Feb 8, 2011 at 1:15 PM, Lennart Poettering > >> wrote: > >> > On Tue,

Re: [systemd-devel] [PATCH] build-sys: fix AC_COMPILE_IFELSE tests

2011-02-08 Thread Lennart Poettering
On Wed, 26.01.11 17:59, Lucas De Marchi (lucas.demar...@profusion.mobi) wrote: > This removes some warnings when bootstrapping. The warnings were introduced > in autoconf 2.68. Reference: Commited. Lennart -- Lennart Poettering - Red Hat, Inc. ___ sy

Re: [systemd-devel] [lenn...@kemper.freedesktop.org: [systemd-commits] src/pam-module.c]

2011-02-08 Thread Andrey Borzenkov
On Tue, Feb 8, 2011 at 1:36 PM, Lennart Poettering wrote: > On Tue, 08.02.11 13:30, Andrey Borzenkov (arvidj...@mail.ru) wrote: > >> >> On Tue, Feb 8, 2011 at 1:15 PM, Lennart Poettering >> wrote: >> > On Tue, 08.02.11 12:29, Andrey Borzenkov (arvidj...@mail.ru) wrote: >> > >> >> > The rtkit patc

Re: [systemd-devel] systemd kills mdmon if it was started manually by user

2011-02-08 Thread Lennart Poettering
On Tue, 08.02.11 13:52, Andrey Borzenkov (arvidj...@mail.ru) wrote: > I am probably the wrong one to ask, but here is what happens when > array is started (from udev perspective) [...] > After this event device goes "plugged" and SYSTEMD_WANTS (if any) are > triggered. But at this point we have

Re: [systemd-devel] several Conditions (AND or OR)

2011-02-08 Thread Andrey Borzenkov
On Tue, Feb 8, 2011 at 1:47 PM, Alexey Shabalin wrote: > On Tue, Feb 8, 2011 at 12:21 PM, Lennart Poettering  wrote: >> On Mon, 07.02.11 14:24, Alexey Shabalin wrote: >>> How chenge (Condition1 || Condition2)  to (Condition1 && Condition2) >> I'd very much prefer not having to extend the condition

Re: [systemd-devel] several Conditions (AND or OR)

2011-02-08 Thread Lennart Poettering
On Tue, 08.02.11 13:47, Alexey Shabalin (a.shaba...@gmail.com) wrote: > > On Tue, Feb 8, 2011 at 12:21 PM, Lennart Poettering wrote: > > On Mon, 07.02.11 14:24, Alexey Shabalin wrote: > >> How chenge (Condition1 || Condition2)  to (Condition1 && Condition2) > > I'd very much prefer not having to

Re: [systemd-devel] systemd kills mdmon if it was started manually by user

2011-02-08 Thread Andrey Borzenkov
On Tue, Feb 8, 2011 at 12:48 PM, Lennart Poettering wrote: > On Fri, 04.02.11 22:55, Andrey Borzenkov (arvidj...@mail.ru) wrote: > >> >> That's right, but the names are not known in advance and can change >> >> between reboots. This means such units have to be generated >> >> dynamically, exist un

Re: [systemd-devel] systemd and sshd.socket/sshd@.service

2011-02-08 Thread Lennart Poettering
On Tue, 08.02.11 13:41, Vasiliy G Tolstov (v.tols...@selfip.ru) wrote: > > On Tue, 2011-02-08 at 11:09 +0100, Lennart Poettering wrote: > > On Mon, 07.02.11 18:49, Vasiliy G Tolstov (v.tols...@selfip.ru) wrote: > > > > > Hello. I'm new in this list. > > > I'm using systemd-17. I'm try to use ss

Re: [systemd-devel] [PATCH] autodetect and use pkg-config for libselinux

2011-02-08 Thread Lennart Poettering
On Thu, 27.01.11 15:44, Alexey Shabalin (a.shaba...@gmail.com) wrote: > Hi! > libselinux has a pkg-config file: Oh, weird. Seems to be a new addition. > Patch for use pkg-config in attach. Applied. (and subsequently modified a bit, so that the logic of this feature works like the other optional

Re: [systemd-devel] several Conditions (AND or OR)

2011-02-08 Thread Alexey Shabalin
On Tue, Feb 8, 2011 at 12:21 PM, Lennart Poettering wrote: > On Mon, 07.02.11 14:24, Alexey Shabalin wrote: >> How chenge (Condition1 || Condition2)  to (Condition1 && Condition2) > I'd very much prefer not having to extend the condition language to more > than what it currently covers. So, before

Re: [systemd-devel] systemd and sshd.socket/sshd@.service

2011-02-08 Thread Vasiliy G Tolstov
On Tue, 2011-02-08 at 11:09 +0100, Lennart Poettering wrote: > On Mon, 07.02.11 18:49, Vasiliy G Tolstov (v.tols...@selfip.ru) wrote: > > > Hello. I'm new in this list. > > I'm using systemd-17. I'm try to use sshd.socket and sshd@.service (run > > sshd in inetd mode). After i'm start service wit

Re: [systemd-devel] [lenn...@kemper.freedesktop.org: [systemd-commits] src/pam-module.c]

2011-02-08 Thread Lennart Poettering
On Tue, 08.02.11 13:30, Andrey Borzenkov (arvidj...@mail.ru) wrote: > > On Tue, Feb 8, 2011 at 1:15 PM, Lennart Poettering > wrote: > > On Tue, 08.02.11 12:29, Andrey Borzenkov (arvidj...@mail.ru) wrote: > > > >> > The rtkit patch ensures rtkit itself can get RT privs. This systemd > >> > patch

Re: [systemd-devel] systemd restart patch

2011-02-08 Thread Lennart Poettering
On Mon, 07.02.11 10:01, Cristian Patrascu (cristian.patra...@windriver.com) wrote: > > On 02/03/2011 11:19 PM, Michael Biebl wrote: > >2011/2/3 Tomasz Torcz: > >>On Thu, Feb 03, 2011 at 09:35:55PM +0100, Michael Biebl wrote: > >>>ExecStartOnFailure=/some/cmd (send an email or what not) > >> Isn

Re: [systemd-devel] [lenn...@kemper.freedesktop.org: [systemd-commits] src/pam-module.c]

2011-02-08 Thread Andrey Borzenkov
On Tue, Feb 8, 2011 at 1:30 PM, Andrey Borzenkov wrote: > On Tue, Feb 8, 2011 at 1:15 PM, Lennart Poettering > wrote: >> On Tue, 08.02.11 12:29, Andrey Borzenkov (arvidj...@mail.ru) wrote: >> >>> > The rtkit patch ensures rtkit itself can get RT privs. This systemd >>> > patch ensures apps (such

Re: [systemd-devel] [lenn...@kemper.freedesktop.org: [systemd-commits] src/pam-module.c]

2011-02-08 Thread Andrey Borzenkov
On Tue, Feb 8, 2011 at 1:15 PM, Lennart Poettering wrote: > On Tue, 08.02.11 12:29, Andrey Borzenkov (arvidj...@mail.ru) wrote: > >> > The rtkit patch ensures rtkit itself can get RT privs. This systemd >> > patch ensures apps (such as PA) started within a systemd session can get >> > RT privs. Wi

Re: [systemd-devel] systemd restart patch

2011-02-08 Thread Lennart Poettering
On Thu, 03.02.11 22:19, Michael Biebl (mbi...@gmail.com) wrote: > > 2011/2/3 Tomasz Torcz : > > On Thu, Feb 03, 2011 at 09:35:55PM +0100, Michael Biebl wrote: > >> ExecStartOnFailure=/some/cmd (send an email or what not) > > > >  Isn't “OnFailure=send-email-to-admin.service” sufficent? > > Havin

Re: [systemd-devel] systemd restart patch

2011-02-08 Thread Lennart Poettering
On Thu, 03.02.11 21:35, Michael Biebl (mbi...@gmail.com) wrote: > > 2011/2/3 Cristian Patrascu : > > So, for these last two features I created a patch, which adds two more > > options for a .service : > > - RestartRetries=n (where n is the number of restart retries) > > - ExecPostRestarts=/some/c

Re: [systemd-devel] [lenn...@kemper.freedesktop.org: [systemd-commits] src/pam-module.c]

2011-02-08 Thread Lennart Poettering
On Tue, 08.02.11 12:29, Andrey Borzenkov (arvidj...@mail.ru) wrote: > > The rtkit patch ensures rtkit itself can get RT privs. This systemd > > patch ensures apps (such as PA) started within a systemd session can get > > RT privs. Without neither patch neither side can get RT privs. To work > > pr

Re: [systemd-devel] systemd and sshd.socket/sshd@.service

2011-02-08 Thread Lennart Poettering
On Mon, 07.02.11 18:49, Vasiliy G Tolstov (v.tols...@selfip.ru) wrote: > Hello. I'm new in this list. > I'm using systemd-17. I'm try to use sshd.socket and sshd@.service (run > sshd in inetd mode). After i'm start service with systemctl start > sshd.socket i'm able to connect. But after some tim

Re: [systemd-devel] systemd kills mdmon if it was started manually by user

2011-02-08 Thread Lennart Poettering
On Fri, 04.02.11 22:55, Andrey Borzenkov (arvidj...@mail.ru) wrote: > >> That's right, but the names are not known in advance and can change > >> between reboots. This means such units have to be generated > >> dynamically, exist until reboot (ramfs?) and be removed when array is > >> destroyed. N

Re: [systemd-devel] [lenn...@kemper.freedesktop.org: [systemd-commits] src/pam-module.c]

2011-02-08 Thread Andrey Borzenkov
On Tue, Feb 8, 2011 at 12:03 PM, Lennart Poettering wrote: > On Tue, 08.02.11 11:27, Andrey Borzenkov (arvidj...@mail.ru) wrote: > >> >> Yupp, there's a ControlGroups=cpu:/ missing in the rtkit service file. I >> >> have forgotten to commit that. Will fix this soon. >> > >> > Fixed now in rtkit an

Re: [systemd-devel] Staring Apply kernel Variables failed.

2011-02-08 Thread Lennart Poettering
On Tue, 08.02.11 16:49, Chanwoo Choi (cwcho...@gmail.com) wrote: > Dear members, > Heya, > [4.310630] systemd[1]: Succesfully opened /dev/kmsg for logging. > [4.315351] systemd[1]: systemd 16 running in system mode. (-PAM -LIBWRAP > -AUDIT -SELINUX +SYSVINIT -LIBCRYPTSETUP; ubuntu) > We

Re: [systemd-devel] several Conditions (AND or OR)

2011-02-08 Thread Lennart Poettering
On Mon, 07.02.11 14:24, Alexey Shabalin (a.shaba...@gmail.com) wrote: > Hello! > I need define several conditions in [Unit]. > ConditionPathExists=/sbin/startevms > ConditionKernelCommandLine=!noevms > Service must run only if both conditions is true. > Now service run if at least one condition is

Re: [systemd-devel] [lenn...@kemper.freedesktop.org: [systemd-commits] src/pam-module.c]

2011-02-08 Thread Lennart Poettering
On Tue, 08.02.11 11:27, Andrey Borzenkov (arvidj...@mail.ru) wrote: > >> Yupp, there's a ControlGroups=cpu:/ missing in the rtkit service file. I > >> have forgotten to commit that. Will fix this soon. > > > > Fixed now in rtkit and systemd git. > > > > The last commit on http://git.0pointer.de/?

Re: [systemd-devel] [lenn...@kemper.freedesktop.org: [systemd-commits] src/pam-module.c]

2011-02-08 Thread Andrey Borzenkov
On Tue, Feb 8, 2011 at 11:04 AM, Lennart Poettering wrote: > On Thu, 03.02.11 21:15, Lennart Poettering (lenn...@poettering.net) wrote: > >> >> On Sat, 29.01.11 12:01, Andrey Borzenkov (arvidj...@mail.ru) wrote: >> >> > >> > On Fri, Dec 24, 2010 at 12:56 PM, Lennart Poettering >> > wrote: >> > >

Re: [systemd-devel] [lenn...@kemper.freedesktop.org: [systemd-commits] src/pam-module.c]

2011-02-08 Thread Lennart Poettering
On Thu, 03.02.11 21:15, Lennart Poettering (lenn...@poettering.net) wrote: > > On Sat, 29.01.11 12:01, Andrey Borzenkov (arvidj...@mail.ru) wrote: > > > > > On Fri, Dec 24, 2010 at 12:56 PM, Lennart Poettering > > wrote: > > > Heya, > > > > > > just wanted to let everybody know that I reverted