Re: [systemd-devel] runtime directories for services vs. tmpfiles

2013-07-17 Thread Tomasz Torcz
On Tue, Jul 16, 2013 at 07:41:08PM +, Jóhann B. Guðmundsson wrote: On 07/16/2013 07:34 PM, Kay Sievers wrote: On Tue, Jul 16, 2013 at 9:28 PM, Jóhann B. Guðmundsson johan...@gmail.com wrote: On 07/16/2013 06:26 PM, Lennart Poettering wrote: I discussed this a bit more with Kay on the

Re: [systemd-devel] [PATCH] travis: Add a travis.yml for doing CI after commits

2013-07-17 Thread Holger Hans Peter Freyther
On Fri, Jul 12, 2013 at 07:51:26PM +0200, Lennart Poettering wrote: Commited. I figure this will not be useful right-away, since current git of systemd requires a very new version of kmod that is not available at Travis. However, it's still a good thing to have and to enable as soon as that

Re: [systemd-devel] [PATCH] service: don't try to kill the service more than once when the watchdog timeout hits

2013-07-17 Thread Michael Olbrich
Hi, On Wed, Jul 17, 2013 at 03:53:09AM +0200, Lennart Poettering wrote: On Wed, 12.06.13 01:22, Michael Olbrich (m.olbr...@pengutronix.de) wrote: If ExecStopPost= is defined then it is executed after SIGKILL. Otherwise another round of SIGTERM/SIGSTOP is started which is rather useless

Re: [systemd-devel] hwdb for sane

2013-07-17 Thread Tom Gundersen
On Wed, Jul 17, 2013 at 1:57 AM, Tom Gundersen t...@jklm.no wrote: Hi guys, I had a stab at converting sane to using hwdb rather than a huge udev rules file. For now only the usb entries have been converted, I didn't look at how to deal with scsi. hwdb file:

[systemd-devel] [PATCHv2] core: notify triggered by socket of a service

2013-07-17 Thread Umut Tezduyar
Refer to: http://lists.freedesktop.org/archives/systemd-devel/2013-June/011532.html --- TODO |3 --- src/core/service.c | 31 --- src/core/socket.c | 33 - src/core/socket.h |3 --- 4 files changed, 32

Re: [systemd-devel] runtime directories for services vs. tmpfiles

2013-07-17 Thread Harald Hoyer
On 07/16/2013 09:28 PM, Jóhann B. Guðmundsson wrote: On 07/16/2013 06:26 PM, Lennart Poettering wrote: I discussed this a bit more with Kay on the phone. Here's what we'd propose: I'd be very conservative regarding adding full tmpfiles support into unit files directly. Instead, I'd suggest

Re: [systemd-devel] runtime directories for services vs. tmpfiles

2013-07-17 Thread Michael Biebl
2013/7/16 Lennart Poettering lenn...@poettering.net: I'd be very conservative regarding adding full tmpfiles support into unit files directly. Instead, I'd suggest adding two very minimal, very specific new unit file settings: RuntimeDirectory= RuntimeDirectoyMode= If RuntimeDirectory= is

Re: [systemd-devel] runtime directories for services vs. tmpfiles

2013-07-17 Thread Michael Biebl
2013/7/17 Harald Hoyer harald.ho...@gmail.com: If RuntimeDirectory would support variable substitutions, this feature could not be provided with systemd-tmpfiles. That would indeed be a nice feature. -- Why is it that all of the instruments seeking intelligent life in the universe are

Re: [systemd-devel] runtime directories for services vs. tmpfiles

2013-07-17 Thread Michael Biebl
2013/7/17 Michael Biebl mbi...@gmail.com: If this scheme is not flexible enough to cover the vast majority of all cases (for services), then I fear we'd end up half of the services using RuntimeDirectory, the other half a tmpfile. And that imho would be even more confusing. Could we have some

Re: [systemd-devel] hwdb for sane

2013-07-17 Thread Tom Gundersen
On Wed, Jul 17, 2013 at 9:36 AM, Tom Gundersen t...@jklm.no wrote: On Wed, Jul 17, 2013 at 1:57 AM, Tom Gundersen t...@jklm.no wrote: Hi guys, I had a stab at converting sane to using hwdb rather than a huge udev rules file. For now only the usb entries have been converted, I didn't look at

Re: [systemd-devel] hwdb for gphoto2

2013-07-17 Thread Kay Sievers
On Wed, Jul 17, 2013 at 11:31 AM, Tom Gundersen t...@jklm.no wrote: Hi guys, Here is an attempt at converting libgphoto2 to hwdb. Seems to work for my phone. hwdb file: https://dev.archlinux.org/~tomegun/20-gphoto2.hwdb patch: https://dev.archlinux.org/~tomegun/gphoto-hwdb.patch Comments

[systemd-devel] [PATCHv3] systemctl, man: option to list units by state

2013-07-17 Thread Maciej Wereski
This allows to show only units with specified SUB or ACTIVE state. Signed-off-by: Maciej Wereski m.were...@partner.samsung.com --- man/systemctl.xml | 15 +-- src/systemctl/systemctl.c | 43 +-- 2 files changed, 50 insertions(+), 8

Re: [systemd-devel] runtime directories for services vs. tmpfiles

2013-07-17 Thread Lennart Poettering
On Wed, 17.07.13 06:56, Andrey Borzenkov (arvidj...@gmail.com) wrote: On Tue, 16.07.13 18:53, Lennart Poettering (lenn...@poettering.net) wrote: I'd be very conservative regarding adding full tmpfiles support into unit files directly. Instead, I'd suggest adding two very minimal, very

[systemd-devel] [PATCH 1/2] test: Keep the test-suite.log around in case of a test failure

2013-07-17 Thread Holger Hans Peter Freyther
From: Holger Hans Peter Freyther hol...@moiji-mobile.com The addition of .DELETE_ON_ERROR will lead to the removal of the test-suite.log in case of a test failure. Mark the rule as PRECIOUS to keep that file around. --- Makefile.am | 3 +++ 1 file changed, 3 insertions(+) diff --git

[systemd-devel] [PATCH 2/2] test: Make testing work on systems without or old systemd

2013-07-17 Thread Holger Hans Peter Freyther
From: Holger Hans Peter Freyther hol...@moiji-mobile.com * Introduce a macro to conditionally execute tests. This avoids skipping the entire test if some parts require systemd * Skip the journal tests when no /etc/machine-id is present * Change test-catalog to load the catalog from the source

Re: [systemd-devel] [PATCH] journal: return -ECHILD after a fork

2013-07-17 Thread Lennart Poettering
On Wed, 17.07.13 11:05, Shawn (shawnland...@gmail.com) wrote: Wouldn't this be better using pthread_atfork() to avoid all the getpid() calls? No pthread_atfork() is not useful for much since it gives no ordering guarantees. Threading and forking doesn't mix well, and neither do single-use

[systemd-devel] Stop all uninstalled units

2013-07-17 Thread Tim Cuthbertson
Hi Folks, I've posted a serverfault question [0], but it got no answers so I thought I'd bring it to the mailing list: I have some systemd units installed and running. Let's say I manually uninstall foo.service by - removing its .service (and .socket) files - removing all symlinks (e.g from

Re: [systemd-devel] [PATCH] journalctl: add --iso-dates for long timestamps

2013-07-17 Thread Lennart Poettering
On Wed, 17.07.13 17:58, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: +/para/listitem +/varlistentry So, now we have -o short, -o short-monotonic, and --iso-dates. I'm sure we'll add a relative timestamp mode like the

Re: [systemd-devel] Stop all uninstalled units

2013-07-17 Thread Lennart Poettering
On Wed, 17.07.13 22:14, Tim Cuthbertson (t...@gfxmonk.net) wrote: Hi Folks, I've posted a serverfault question [0], but it got no answers so I thought I'd bring it to the mailing list: I have some systemd units installed and running. Let's say I manually uninstall foo.service by -

Re: [systemd-devel] [PATCHv3] systemctl, man: option to list units by state

2013-07-17 Thread Lennart Poettering
On Wed, 17.07.13 13:01, Maciej Wereski (m.were...@partner.samsung.com) wrote: This allows to show only units with specified SUB or ACTIVE state. Signed-off-by: Maciej Wereski m.were...@partner.samsung.com Hmm, could you make --state= check all three states please? i.e. active, sub and load

Re: [systemd-devel] Stop all uninstalled units

2013-07-17 Thread Tim Cuthbertson
On Thu, Jul 18, 2013 at 9:47 AM, Lennart Poettering lenn...@poettering.netwrote: On Wed, 17.07.13 22:14, Tim Cuthbertson (t...@gfxmonk.net) wrote: Hi Folks, I've posted a serverfault question [0], but it got no answers so I thought I'd bring it to the mailing list: I have some

Re: [systemd-devel] runtime directories for services vs. tmpfiles

2013-07-17 Thread Lennart Poettering
On Wed, 17.07.13 11:24, Michael Biebl (mbi...@gmail.com) wrote: 2013/7/17 Michael Biebl mbi...@gmail.com: If this scheme is not flexible enough to cover the vast majority of all cases (for services), then I fear we'd end up half of the services using RuntimeDirectory, the other half a

Re: [systemd-devel] [PATCH] service: don't try to kill the service more than once when the watchdog timeout hits

2013-07-17 Thread Lennart Poettering
On Wed, 17.07.13 09:20, Michael Olbrich (m.olbr...@pengutronix.de) wrote: Hi, On Wed, Jul 17, 2013 at 03:53:09AM +0200, Lennart Poettering wrote: On Wed, 12.06.13 01:22, Michael Olbrich (m.olbr...@pengutronix.de) wrote: If ExecStopPost= is defined then it is executed after SIGKILL.

Re: [systemd-devel] [PATCHv2] core: notify triggered by socket of a service

2013-07-17 Thread Lennart Poettering
On Wed, 17.07.13 09:46, Umut Tezduyar (u...@tezduyar.com) wrote: +static void socket_trigger_notify(Unit *u, Unit *other) { +Socket *s = SOCKET(u); +Service *se = SERVICE(other); + +assert(u); +assert(other); + +if (other-load_state != UNIT_LOADED

Re: [systemd-devel] [PATCH] journalctl: add --iso-dates for long timestamps

2013-07-17 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Jul 18, 2013 at 01:36:51AM +0200, Lennart Poettering wrote: On Wed, 17.07.13 17:58, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: +/para/listitem +/varlistentry So, now we have -o short, -o short-monotonic, and

Re: [systemd-devel] runtime directories for services vs. tmpfiles

2013-07-17 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Jul 18, 2013 at 02:51:09AM +0200, Lennart Poettering wrote: [snip repoquery magic] This means: ~81% of the packages have been converted from sysv to systemd. And ~10% of the converted packages make use of tmpfiles. Now, my rpm/yum-fu is a bit too limited to easily figure out what

Re: [systemd-devel] [PATCH] Log failing start conditions

2013-07-17 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Jul 16, 2013 at 07:15:56PM +0200, Lennart Poettering wrote: On Wed, 26.06.13 15:06, har...@redhat.com (har...@redhat.com) wrote: From: Harald Hoyer har...@redhat.com $ systemctl status dracut-initqueue.service dracut-initqueue.service - dracut initqueue hook Loaded: loaded

Re: [systemd-devel] [PATCH v5] journalctl: Add support for showing messages from a previous boot

2013-07-17 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Jul 16, 2013 at 05:46:04PM +0200, Lennart Poettering wrote: On Tue, 16.07.13 17:42, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: On Tue, Jul 16, 2013 at 05:39:54PM +0200, Lennart Poettering wrote: On Fri, 28.06.13 17:26, Jan Janssen (medhe...@web.de) wrote: Applied

Re: [systemd-devel] [PATCH 1/2] test: Keep the test-suite.log around in case of a test failure

2013-07-17 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Jul 17, 2013 at 04:29:55PM +0200, Holger Hans Peter Freyther wrote: From: Holger Hans Peter Freyther hol...@moiji-mobile.com The addition of .DELETE_ON_ERROR will lead to the removal of the test-suite.log in case of a test failure. Mark the rule as PRECIOUS to keep that file around.

Re: [systemd-devel] [PATCH 2/2] test: Make testing work on systems without or old systemd

2013-07-17 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Jul 17, 2013 at 04:29:56PM +0200, Holger Hans Peter Freyther wrote: From: Holger Hans Peter Freyther hol...@moiji-mobile.com * Introduce a macro to conditionally execute tests. This avoids skipping the entire test if some parts require systemd * Skip the journal tests when no

Re: [systemd-devel] [PATCH 2/2] test: Make testing work on systems without or old systemd

2013-07-17 Thread Holger Hans Peter Freyther
On Thu, Jul 18, 2013 at 06:16:48AM +0200, Zbigniew Jędrzejewski-Szmek wrote: Can we use the STRINGIFY macro instead? I can try. /* Note: this might actually not find anything, if systemd was * not installed before. That should be fine too. */ -r =

Re: [systemd-devel] [PATCH] journalctl: add --iso-dates for long timestamps

2013-07-17 Thread Tomasz Torcz
On Thu, Jul 18, 2013 at 01:36:51AM +0200, Lennart Poettering wrote: On Wed, 17.07.13 17:58, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: +/para/listitem +/varlistentry So, now we have -o short, -o short-monotonic, and

Re: [systemd-devel] [PATCH] travis: Add a travis.yml for doing CI after commits

2013-07-17 Thread Holger Hans Peter Freyther
On Wed, Jul 17, 2013 at 05:08:46PM +0200, Kay Sievers wrote: I did something like that now. Let's see if it works ... Thank you, it did[1]. [1] https://travis-ci.org/systemd/systemd ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org

Re: [systemd-devel] [PATCH] travis: Add a travis.yml for doing CI after commits

2013-07-17 Thread Holger Hans Peter Freyther
On Wed, Jul 17, 2013 at 04:02:26PM -0300, Lucas De Marchi wrote: Talking about kmod and travis-ci. In kmod we are using it. Pretty cool, with an IRC bot integration. I only wish there were more options of distributions. Right now it's only Ubuntu 12.04 32 bits You could ask the people that