Re: [systemd-devel] [PATCH 2/3 RFC] systemd: use structured logging for unit changes

2012-10-18 Thread Marius Tolzmann
), + ERRNO=%d, errno, shouldn't that be ERRNO=%d, (-r), ? I did not check the rest. It just hit my eyes 8) Bye marius.. -- Dipl.-Inf. Marius Tolzmann marius.tolzm...@molgen.mpg.de --.-- MPI f. molekulare Genetik

Re: [systemd-devel] when will mount / df get fixed?

2012-10-02 Thread Marius Tolzmann
, marius.. -- Dipl.-Inf. Marius Tolzmann marius.tolzm...@molgen.mpg.de --.-- MPI f. molekulare Genetik | Ihnestrasse 63-73, D-14195 Berlin | == MarIuX GNU/Linux == Phone: +49 (0)30 8413 1709

Re: [systemd-devel] when will mount / df get fixed?

2012-10-01 Thread Marius Tolzmann
Hi.. On 01.10.2012 20:32, Reindl Harald wrote: and how they should do this after the change that there is no flag? dispaly a RANDOM line? That is a possibility. Based upon that you are only interested in the device anyway, I conclude the mountpoint is irrelevant that makes preety no

Re: [systemd-devel] [PATCH] main: fix error message if PR_SET_CHILD_REAPER is not available

2012-08-21 Thread Marius Tolzmann
Hey.. On 21.08.2012 22:38, shawn wrote: On Fri, 2012-08-17 at 11:15 +0200, Marius Tolzmann wrote: But 'git grep PR_SET_CHILD_SUBREAPER' on the 3.3.8 (EOL) branch did not return any matches for me. So I guess it may be correct to mention 3.4 here. Also a 'git br -a --contains ebec18a6' states

Re: [systemd-devel] [PATCH] main: fix error message if PR_SET_CHILD_REAPER is not available

2012-08-17 Thread Marius Tolzmann
Hi.. On 08/17/12 02:44, shawn wrote: On Thu, 2012-08-16 at 18:38 +0200, Marius Tolzmann wrote: --- +if (r 0 errno == EINVAL) log_error(Perhaps the kernel version is too old ( 3.4?)); PR_SET_CHILD_SUBREAPER made it into 3.3, so this should

[systemd-devel] [PATCH] Fix error message if PR_SET_CHILD_REAPER is not available

2012-08-16 Thread Marius Tolzmann
the REQUIREMENTS section in the README still has Linux kernel = 2.6.39 in it. May be it should at least be updated to reflect a *recommended* version of Linux kernel = 3.4? Because the messages I just tried to fix are log_error() and not log_warning(). Best, Marius Tolzmann Marius

[systemd-devel] [PATCH] main: fix error message if PR_SET_CHILD_REAPER is not available

2012-08-16 Thread Marius Tolzmann
--- src/core/main.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/main.c b/src/core/main.c index cdd77c1..8973637 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -1511,8 +1511,8 @@ int main(int argc, char *argv[]) { /* Become reaper of

Re: [systemd-devel] start service only on specific exit status of some prog

2011-08-24 Thread Marius Tolzmann
On 24.08.2011 16:01, Lennart Poettering wrote: On Tue, 02.08.11 17:06, Marius Tolzmann (tolzm...@molgen.mpg.de) wrote: is there a way to execute a program and take its exit status to evaluate the condition? like ConditionExec or whatever. is this already possible without getting a failed

Re: [systemd-devel] start service only on specific exit status of some prog

2011-08-24 Thread Marius Tolzmann
On 24.08.2011 18:52, Lennart Poettering wrote: Hmm, yeah, if ExecStartPre= we put the unit in failure mode. So, let me see if I got this right: you are looking for something like ExecStartPre= but twhere the program when it returns non-zero should just cause the service to be skipped but not be

Re: [systemd-devel] start service only on specific exit status of some prog

2011-08-24 Thread Marius Tolzmann
On 24.08.2011 21:21, Lennart Poettering wrote: On Wed, 24.08.11 21:12, Marius Tolzmann (tolzm...@molgen.mpg.de) wrote: On 24.08.2011 18:52, Lennart Poettering wrote: Hmm, yeah, if ExecStartPre= we put the unit in failure mode. So, let me see if I got this right: you are looking

[systemd-devel] kernel dependency = 2.6.37 now?

2011-08-10 Thread Marius Tolzmann
. -- Dipl.-Inf. Marius Tolzmann marius.tolzm...@molgen.mpg.de --.-- MPI f. molekulare Genetik | Ihnestrasse 63-73, D-14195 Berlin | == MarIuX GNU/Linux == Phone: +49 (0)30 8413 1709

[systemd-devel] start service only on specific exit status of some prog

2011-08-02 Thread Marius Tolzmann
getting a failed service? bye m. -- Dipl.-Inf. Marius Tolzmann marius.tolzm...@molgen.mpg.de --.-- MPI f. molekulare Genetik | Ihnestrasse 63-73, D-14195 Berlin | == MarIuX GNU/Linux == Phone: +49 (0)30 8413 1709

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] possible bug guessing mainpid when service type=forking..

2011-06-21 Thread Marius Tolzmann
.. -- Dipl.-Inf. Marius Tolzmann marius.tolzm...@molgen.mpg.de --.-- MPI f. molekulare Genetik | Ihnestrasse 63-73, D-14195 Berlin | == MarIuX GNU/Linux == Phone: +49 (0)30 8413 1709

Re: [systemd-devel] Trying to build on a new LFS system.

2011-06-21 Thread Marius Tolzmann
On 06/21/11 08:24, Stef Bon wrote: 2011/6/20 Marius Tolzmann tolzm...@molgen.mpg.de: Hi there.. we are also using a self-maintained LFS based gnu/linux here. we switched to systemd in Nov 2010 and it worked fine from the start.. What version are you using? currently systemd v27

Re: [systemd-devel] Trying to build on a new LFS system.

2011-06-20 Thread Marius Tolzmann
dir: /usr/share/dbus-1/services/../interfaces -- Dipl.-Inf. Marius Tolzmann marius.tolzm...@molgen.mpg.de --.-- MPI f. molekulare Genetik | Ihnestrasse 63-73, D-14195 Berlin | == MarIuX GNU/Linux == Phone: +49 (0)30 8413

Re: [systemd-devel] [bug?] screen not working correctly under systemd

2011-05-19 Thread Marius Tolzmann
/11 08:47, microcai wrote: When you ssh to an systemd machine, and start a screen session, detach and logout. Then this screen session will be wipe out by systemd, so , when you login back, there will be no screen session out there. Is this a bug? of screen or systemd? -- Dipl.-Inf. Marius

[systemd-devel] user startable services in systemd context

2011-04-07 Thread Marius Tolzmann
this mess up a bit but havn't found much information how this could already be done or if it is even planned to be a possible configuration in the future. bye marius -- Dipl.-Inf. Marius Tolzmann marius.tolzm...@molgen.mpg.de --.-- MPI f

[systemd-devel] some issues with missing HAVE_SYSV_COMPAT and /run/lock

2011-04-06 Thread Marius Tolzmann
of sysv-init-directories? (we don't have any sysv-init scripts installed anymore since we completly switched to systemd v15 some time ago) i would greatly appreciate any assistance.. 8) regards, marius.. -- Dipl.-Inf. Marius Tolzmann marius.tolzm...@molgen.mpg.de

Re: [systemd-devel] some issues with missing HAVE_SYSV_COMPAT and /run/lock

2011-04-06 Thread Marius Tolzmann
hi.. On 04/06/11 16:01, Lennart Poettering wrote: On Wed, 06.04.11 15:30, Marius Tolzmann (tolzm...@molgen.mpg.de) wrote: * /run/lock is not mounted/created since tmpfiles.d/legacy.conf is not installed (?) Yes, correct. So how am i supposed to fix the missing /run/lock issue? i

Re: [systemd-devel] some issues with missing HAVE_SYSV_COMPAT and /run/lock

2011-04-06 Thread Marius Tolzmann
seems to be something the distributions and upstream programmers should care about and nothing systemd can fix directly.. and again: i am really happy with the cleanup issues systemd brings up.. 8) m. p.s.: weiter so 8) -- Dipl.-Inf. Marius Tolzmann marius.tolzm...@molgen.mpg.de

[systemd-devel] how to handle filesystems that do not support d_type in readdirs dirent?

2011-03-03 Thread Marius Tolzmann
hello.. we are currently using reiserfs on our root-partition.. since reiserfs always sets d_type to DT_UNKNOWN in dirent entries some tools like systemd-tmpfiles do not work as expected. in src/util.c:3905 DT_UNKNOWN is already included when checking file for type DT_REG or DT_LNK.

Re: [systemd-devel] how to handle filesystems that do not support d_type in readdirs dirent?

2011-03-03 Thread Marius Tolzmann
) fix this: - remove the whole check.. - add DT_UNKNOWN and may be in addition check for regular file using some stat() before reading the config in systemd-tmpfiles.. marius -- Dipl.-Inf. Marius Tolzmann marius.tolzm...@molgen.mpg.de

Re: [systemd-devel] [PATCH] add extra check for DT_UNKNOWN files in directory scan

2011-03-03 Thread Marius Tolzmann
| 137 +++--- src/tmpfiles.c | 22 --- src/tty-ask-password-agent.c |8 ++- 3 files changed, 94 insertions(+), 73 deletions(-) -- Dipl.-Inf. Marius Tolzmann marius.tolzm...@molgen.mpg.de

Re: [systemd-devel] [PATCH] add extra check for DT_UNKNOWN files in directory scan

2011-03-03 Thread Marius Tolzmann
oops.. sorry.. wrong patch sent... this won't compile.. but since lennart also fixed it it seems to be obsolete anyway... 8) m. On 03/03/11 16:36, Marius Tolzmann wrote: Hello.. this looks fine.. and is better than just adding DT_UNKOWN 8) i additionally patched the cgroup-util.c (see

Re: [systemd-devel] how to handle filesystems that do not support d_type in readdirs dirent?

2011-03-03 Thread Marius Tolzmann
hi On 03/03/11 16:30, Lennart Poettering wrote: On Thu, 03.03.11 13:05, Marius Tolzmann (tolzm...@molgen.mpg.de) wrote: hello.. we are currently using reiserfs on our root-partition.. Urks, people still use that cruft? at least we do.. .. how is this supposed to be handled

Re: [systemd-devel] Assertion failed in systemd v16

2011-01-18 Thread Marius Tolzmann
hi.. On 01/18/11 13:30, Alexander E. Patrakov wrote: As you noticed, this changes the PID, and systemd currently cannot handle this. We could however reload the PID file after a reload completed I guess. (/me adds this to the todo list) Well, there are cases (live update of nginx, see

Re: [systemd-devel] lighttp unit - graceful reload of configfiles by sending signal to $MAINPID

2011-01-11 Thread Marius Tolzmann
hi again.. On 01/11/11 11:51, Alexander E. Patrakov wrote: After more research, I found the under-documented lighttpd-angel program. It does what is needed for babysitting lighttpd: performs the send SIGINT to the old copy and immediately start the new one dance when it receives SIGHUP. See

Re: [systemd-devel] lighttp unit - graceful reload of configfiles by sending signal to $MAINPID

2011-01-11 Thread Marius Tolzmann
hi.. On 01/11/11 16:11, Alexander E. Patrakov wrote: When the config is bad and the additional ExecReload line is present, systemd does tell me that reload failed. So I have a good reason to check syslog, and even am suggested by systemd to do so. sorry my fault 8).. i thought it was

[systemd-devel] lighttp unit - graceful reload of configfiles by sending signal to $MAINPID

2011-01-10 Thread Marius Tolzmann
. Marius Tolzmann marius.tolzm...@molgen.mpg.de --.-- MPI f. molekulare Genetik | Ihnestrasse 63-73, D-14195 Berlin | == MarIuX GNU/Linux == Phone: +49 (0)30 8413 1709

Re: [systemd-devel] syslog.socket vs. syslog.service

2010-12-03 Thread Marius Tolzmann
. Marius Tolzmann marius.tolzm...@molgen.mpg.de --.-- MPI f. molekulare Genetik | Ihnestrasse 63-73, D-14195 Berlin | == MarIuX GNU/Linux == Phone: +49 (0)30 8413 1709