Re: [systemd-devel] Shutting down service using systemd-nspawn

2015-05-06 Thread Peter Paule
> I implemented this now: > > http://cgit.freedesktop.org/systemd/systemd/commit/?id=c6c8f6e218995852350e5e35c080dec788c42c3f Thanks a lot. Sorry, have seen your mail to late - I'm trying out a new mua (sup) and I'm not that familiar with it yet. Do you think it makes sense to add something lik

Re: [systemd-devel] Supporting ExecStartPre= and friends in `systemctl set-property` or `systemd-run -p`

2015-05-06 Thread Ivan Shapovalov
On 2015-05-06 at 18:59 +0200, Lennart Poettering wrote: > On Wed, 06.05.15 19:53, Andrei Borzenkov (arvidj...@gmail.com) wrote: > > > I still think that being able to define and start group of units > > as one > > unit (pun unintended) is better in the long run. > > > > This really far exceeds o

[systemd-devel] LPC 2015 Boot, Init, and Config microconf RFC and Invitation

2015-05-06 Thread Mehaffey, John
The Boot, Init, and Config microconference is inviting interested parties to comment on proposed topics and show their interest in attending. Proposed topics are at http://wiki.linuxplumbersconf.org/2015:boot_init_and_config, and include containers, tinification, systemd tuning, k/dbus, early k

Re: [systemd-devel] Shutting down service using systemd-nspawn

2015-05-06 Thread Peter Paule
Sorry for the late reply. Thanks for the explanation. > I'd be willing to take a patch that adds --kill-signal= that allows > changing the kill signal from SIGRTMIN+3 to anything else. With that > you could use --kill-signal=SIGTERM to get the behaviour you want... Hopefully someone else can help

Re: [systemd-devel] [PATCH] Generate a fake systemd-fsck-root.service in the initramfs

2015-05-06 Thread Andrei Borzenkov
В Wed, 6 May 2015 19:13:46 +0200 Lennart Poettering пишет: > > Also, I think it's a bit pointless optimizing fsck invocations in > setups like this. I mean, if you cared about fsck runtime you probably > wouldnt use ext234 anyway, which are really the only file systems used > for / or /usr that

Re: [systemd-devel] [PATCH] Generate a fake systemd-fsck-root.service in the initramfs

2015-05-06 Thread Lennart Poettering
On Wed, 06.05.15 19:12, Lennart Poettering (lenn...@poettering.net) wrote: > On Wed, 06.05.15 15:50, Harald Hoyer (harald.ho...@gmail.com) wrote: > > > Works for me... booted with "ro" on the kernel cmdline: > > > > $ systemctl status systemd-fsck-root.service > > ● systemd-fsck-root.service - F

Re: [systemd-devel] [PATCH] Generate a fake systemd-fsck-root.service in the initramfs

2015-05-06 Thread Lennart Poettering
On Wed, 06.05.15 15:50, Harald Hoyer (harald.ho...@gmail.com) wrote: > Works for me... booted with "ro" on the kernel cmdline: > > $ systemctl status systemd-fsck-root.service > ● systemd-fsck-root.service - File System Check on Root Device >Loaded: loaded (/usr/lib/systemd/system/systemd-fsc

Re: [systemd-devel] [PATCH] Generate a fake systemd-fsck-root.service in the initramfs

2015-05-06 Thread Lennart Poettering
On Wed, 06.05.15 01:26, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > In the initramfs, we run systemd-fsck@.service. > In the real system we run systemd-fsck-root.service. Generate > a fake systemd-fsck-root.service if we are running a unit check > for the root file system. We don't re

Re: [systemd-devel] initrd mount inactive

2015-05-06 Thread Lennart Poettering
On Thu, 30.04.15 15:20, aaron_wri...@selinc.com (aaron_wri...@selinc.com) wrote: > Lennart Poettering wrote on 04/30/2015 02:39:45 > AM: > > On Wed, 29.04.15 12:09, aaron_wri...@selinc.com > > (aaron_wri...@selinc.com) wrote: > > > > > I applied those other commits you listed, and I took a loo

Re: [systemd-devel] journal-.gitignore-add-audit_type-from-name

2015-05-06 Thread Lennart Poettering
On Thu, 30.04.15 19:42, Daniel Buch (boogiewasth...@gmail.com) wrote: Zbigniew merged a similar patch today. Thanks! > > From 785b1367fedb912e91074360c0961209ac5dc9f8 Mon Sep 17 00:00:00 2001 > From: Daniel Buch > Date: Thu, 30 Apr 2015 21:20:57 +0200 > Subject: [PATCH] journal: .gitignore add

Re: [systemd-devel] Supporting ExecStartPre= and friends in `systemctl set-property` or `systemd-run -p`

2015-05-06 Thread Lennart Poettering
On Wed, 06.05.15 19:53, Andrei Borzenkov (arvidj...@gmail.com) wrote: > I still think that being able to define and start group of units as one > unit (pun unintended) is better in the long run. > > This really far exceeds original scope of systemd-run which was > "quickly start something under s

Re: [systemd-devel] Supporting ExecStartPre= and friends in `systemctl set-property` or `systemd-run -p`

2015-05-06 Thread Andrei Borzenkov
В Wed, 6 May 2015 18:37:00 +0200 Lennart Poettering пишет: > On Wed, 06.05.15 05:52, Ivan Shapovalov (intelfx...@gmail.com) wrote: > > > On 2015-04-24 at 11:10 +0200, Lennart Poettering wrote: > > > On Fri, 24.04.15 04:07, Ivan Shapovalov (intelfx...@gmail.com) wrote: > > > > > > > - do `system

Re: [systemd-devel] Supporting ExecStartPre= and friends in `systemctl set-property` or `systemd-run -p`

2015-05-06 Thread Lennart Poettering
On Wed, 06.05.15 05:52, Ivan Shapovalov (intelfx...@gmail.com) wrote: > On 2015-04-24 at 11:10 +0200, Lennart Poettering wrote: > > On Fri, 24.04.15 04:07, Ivan Shapovalov (intelfx...@gmail.com) wrote: > > > > > - do `systemd-run` twice and somehow set up the dependencies > > > between > > > t

Re: [systemd-devel] Supporting ExecStartPre= and friends in `systemctl set-property` or `systemd-run -p`

2015-05-06 Thread Lennart Poettering
On Wed, 06.05.15 09:16, Andrei Borzenkov (arvidj...@gmail.com) wrote: > On Wed, May 6, 2015 at 5:52 AM, Ivan Shapovalov wrote: > > On 2015-04-24 at 11:10 +0200, Lennart Poettering wrote: > >> On Fri, 24.04.15 04:07, Ivan Shapovalov (intelfx...@gmail.com) wrote: > >> > >> > - do `systemd-run` twic

Re: [systemd-devel] [PATCH] udev: fix coding style

2015-05-06 Thread Lennart Poettering
On Wed, 06.05.15 11:45, Susant Sahani (sus...@redhat.com) wrote: Actually, we allow the line break there too, even though we prefer to not have it there. Applied anyway. Thanks! > --- > src/udev/net/ethtool-util.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/src/ud

Re: [systemd-devel] PATCH: systemctl: null-initialize pointer with cleanup attribute

2015-05-06 Thread Lennart Poettering
On Wed, 06.05.15 08:32, Daniel Buch (boogiewasth...@gmail.com) wrote: > Patch attached. (git send-email currently brokken) Looks good! Applied! Thanks! Lennart -- Lennart Poettering, Red Hat ___ systemd-devel mailing list systemd-devel@lists.freedesk

Re: [systemd-devel] Adopt processes spawned before /lib/systemd/systemd takes over as PID 1?

2015-05-06 Thread Lennart Poettering
On Wed, 06.05.15 09:28, Matt Hoosier (matt.hoos...@gmail.com) wrote: > One final question on this topic: > > I'm not sure from the available discussion of the 'Alias=' directive in > systemd.unit(5) whether it might be possible for me to have two units: > > /lib/systemd/system/dummy-adopted-se

Re: [systemd-devel] [PATCH] Generate a fake systemd-fsck-root.service in the initramfs

2015-05-06 Thread Harald Hoyer
On 06.05.2015 15:58, Zbigniew Jędrzejewski-Szmek wrote: > On Wed, May 06, 2015 at 03:50:08PM +0200, Harald Hoyer wrote: >> Works for me... booted with "ro" on the kernel cmdline: >> >> $ systemctl status systemd-fsck-root.service >> ● systemd-fsck-root.service - File System Check on Root Device

Re: [systemd-devel] Adopt processes spawned before /lib/systemd/systemd takes over as PID 1?

2015-05-06 Thread Matt Hoosier
One final question on this topic: I'm not sure from the available discussion of the 'Alias=' directive in systemd.unit(5) whether it might be possible for me to have two units: /lib/systemd/system/dummy-adopted-service.service ... [Unit] DefaultDependencies=no [Service] Typ

Re: [systemd-devel] [PATCH] Generate a fake systemd-fsck-root.service in the initramfs

2015-05-06 Thread Zbigniew Jędrzejewski-Szmek
On Wed, May 06, 2015 at 03:50:08PM +0200, Harald Hoyer wrote: > Works for me... booted with "ro" on the kernel cmdline: > > $ systemctl status systemd-fsck-root.service > ● systemd-fsck-root.service - File System Check on Root Device >Loaded: loaded (/usr/lib/systemd/system/systemd-fsck-root.s

Re: [systemd-devel] [PATCH] Generate a fake systemd-fsck-root.service in the initramfs

2015-05-06 Thread Harald Hoyer
Works for me... booted with "ro" on the kernel cmdline: $ systemctl status systemd-fsck-root.service ● systemd-fsck-root.service - File System Check on Root Device Loaded: loaded (/usr/lib/systemd/system/systemd-fsck-root.service; static; vendor preset: disabled) Active: inactive (dead) sinc

Re: [systemd-devel] Don't allow to restart emergency.service/rescue.service

2015-05-06 Thread Zbigniew Jędrzejewski-Szmek
On Wed, May 06, 2015 at 02:08:18PM +0200, Michael Biebl wrote: > 2015-05-06 13:40 GMT+02:00 Zbigniew Jędrzejewski-Szmek : > > On Wed, May 06, 2015 at 12:39:50PM +0200, Michael Biebl wrote: > >> 2015-05-06 1:49 GMT+02:00 Cameron Norman : > >> > +KillMode=process > >> > > >> > If I had to take a gues

Re: [systemd-devel] Don't allow to restart emergency.service/rescue.service

2015-05-06 Thread Michael Biebl
2015-05-06 13:40 GMT+02:00 Zbigniew Jędrzejewski-Szmek : > On Wed, May 06, 2015 at 12:39:50PM +0200, Michael Biebl wrote: >> 2015-05-06 1:49 GMT+02:00 Cameron Norman : >> > +KillMode=process >> > >> > If I had to take a guess I would say that it was desired to let the >> > shell do its own process

Re: [systemd-devel] [PATCH] test-socket-util: Fix tests on machines without ipv6 support

2015-05-06 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Apr 30, 2015 at 10:18:31AM +0200, Sjoerd Simons wrote: > The test for socket-util already has some code to only do certain tests > on machines with ipv6 support. However this was incomplete causing the > test to still fail on such machines, this patch adds the remaining cases > required to

Re: [systemd-devel] Don't allow to restart emergency.service/rescue.service

2015-05-06 Thread Zbigniew Jędrzejewski-Szmek
On Wed, May 06, 2015 at 12:39:50PM +0200, Michael Biebl wrote: > 2015-05-06 1:49 GMT+02:00 Cameron Norman : > > +KillMode=process > > > > If I had to take a guess I would say that it was desired to let the > > shell do its own process management, but Lennart can only know. Maybe > > KillMode=mixed

Re: [systemd-devel] Supporting ExecStartPre= and friends in `systemctl set-property` or `systemd-run -p`

2015-05-06 Thread Ivan Shapovalov
On 2015-05-06 at 09:16 +0300, Andrei Borzenkov wrote: > On Wed, May 6, 2015 at 5:52 AM, Ivan Shapovalov > wrote: > > On 2015-04-24 at 11:10 +0200, Lennart Poettering wrote: > > > On Fri, 24.04.15 04:07, Ivan Shapovalov (intelfx...@gmail.com) > > > wrote: > > > > > > > - do `systemd-run` twice an

Re: [systemd-devel] Don't allow to restart emergency.service/rescue.service

2015-05-06 Thread Michael Biebl
2015-05-06 1:49 GMT+02:00 Cameron Norman : > +KillMode=process > > If I had to take a guess I would say that it was desired to let the > shell do its own process management, but Lennart can only know. Maybe > KillMode=mixed would be better? KillMode=mixed seems to work better, indeed, from a quick

Re: [systemd-devel] [PATCH] Generate a fake systemd-fsck-root.service in the initramfs

2015-05-06 Thread Harald Hoyer
On 06.05.2015 07:26, Zbigniew Jędrzejewski-Szmek wrote: > In the initramfs, we run systemd-fsck@.service. > In the real system we run systemd-fsck-root.service. Generate > a fake systemd-fsck-root.service if we are running a unit check > for the root file system. We don't really care if the real fs

[systemd-devel] PATCH: systemctl: null-initialize pointer with cleanup attribute

2015-05-06 Thread Daniel Buch
Patch attached. (git send-email currently brokken) declarations with _cleanup_free_ attribute needs to be NULL initialized. From e242049410bb8373f8724ac24328e0f024b9929b Mon Sep 17 00:00:00 2001 From: Daniel Buch Date: Wed, 6 May 2015 10:28:08 +0200 Subject: [PATCH] systemctl: null-initialize poi

Re: [systemd-devel] [PATCH] udev: Restore udevadm settle timeout

2015-05-06 Thread David Herrmann
Hi On Wed, May 6, 2015 at 4:31 AM, Zbigniew Jędrzejewski-Szmek wrote: > On Mon, Apr 20, 2015 at 10:33:48AM +0200, David Herrmann wrote: >> Hi >> >> On Sat, Apr 11, 2015 at 9:38 PM, Nir Soffer wrote: >> > On Sat, Apr 11, 2015 at 1:36 PM, David Herrmann >> > wrote: >> >> > @@ -139,6 +142,9 @@ st

Re: [systemd-devel] [PATCH] tmpfiles: try to handle read-only file systems gracefully

2015-05-06 Thread Michael Olbrich
On Wed, May 06, 2015 at 04:11:57AM +, Zbigniew Jędrzejewski-Szmek wrote: > On Thu, Apr 30, 2015 at 08:50:38PM +0200, Michael Olbrich wrote: > > On read-only filesystems trying to create the target will not fail with > > EEXIST but with EROFS. Handle EROFS by checking if the target already > > e

Re: [systemd-devel] [PATCH] udev: fix coding style

2015-05-06 Thread systemd github import bot
Patchset imported to github. Pull request: -- Generated by https://github.com/haraldh/mail2git ___ systemd-devel mailing