Re: [systemd-devel] Regarding the

2013-09-30 Thread Colin Guthrie
'Twas brillig, and abhishek sharma at 30/09/13 05:16 did gyre and gimble: Is there any service in the existing standard distribution, where I can get hands on these parameters ExecStartPre, ExecStart, ExecStartPost, ExecReload, ExecStop, ExecStop, ExecMainCode, signal result and ExecMainStatus

Re: [systemd-devel] [PATCH] Make upstart compatibility optional

2013-09-30 Thread Dave Reisner
On Sun, Sep 29, 2013 at 11:18:52PM -0300, Cristian Rodríguez wrote: El 29/09/13 15:11, Lennart Poettering escribió: On Fri, 27.09.13 23:04, Kay Sievers (k...@vrfy.org) wrote: On Fri, Sep 27, 2013 at 9:24 PM, Cristian Rodríguez crrodrig...@opensuse.org wrote: Distributions such as

[systemd-devel] What is the best way to run a shell script through 'ExecStart'

2013-09-30 Thread Muhammad Shakeel
Greetings all, I have been trying to convert a LSB initscript of a package into corresponding systemd service file. Most init scripts are simple and translating them into systemd unit files is non-trivial. In this case it is a relatively long script involving some loops. 1) Should I write a

Re: [systemd-devel] What is the best way to run a shell script through 'ExecStart'

2013-09-30 Thread Tom Gundersen
Hi Muhammad, On Mon, Sep 30, 2013 at 3:25 PM, Muhammad Shakeel muhammad_shak...@mentor.com wrote: I have been trying to convert a LSB initscript of a package into corresponding systemd service fyile. Most init scripts are simple and translating them into systemd unit files is non-trivial. In

Re: [systemd-devel] systemd remounts root fs read-only, doesn't detect lxc-libvirt

2013-09-30 Thread Florian Klink
Am 29.09.2013 22:06, schrieb Florian Klink: Am 29.09.2013 21:59, schrieb Lennart Poettering: On Sat, 28.09.13 16:35, Florian Klink (flo...@flokli.de) wrote: Hi, I setup some freshly-bootstrapped Arch Linux containers using systemd 204 (so only systemd inside, no old init systems) They are

Re: [systemd-devel] What is the best way to run a shell script through 'ExecStart'

2013-09-30 Thread Reindl Harald
Am 30.09.2013 15:31, schrieb Tom Gundersen: On Mon, Sep 30, 2013 at 3:25 PM, Muhammad Shakeel muhammad_shak...@mentor.com wrote: I have been trying to convert a LSB initscript of a package into corresponding systemd service fyile. Most init scripts are simple and translating them into

[systemd-devel] Renaming network interfaces: device or resource busy

2013-09-30 Thread Colin Guthrie
Hi, Just trying to debug the problem mentioned in the subject. I'm wanting to use the new device names in stage 2 of our installer (some closing config routines write the interface name into some conf files etc), but when udev rules kick in, the device is already up and in use... is there any way

Re: [systemd-devel] Renaming network interfaces: device or resource busy

2013-09-30 Thread Thomas Bächler
Am 30.09.2013 17:14, schrieb Colin Guthrie: Hi, Just trying to debug the problem mentioned in the subject. I'm wanting to use the new device names in stage 2 of our installer (some closing config routines write the interface name into some conf files etc), but when udev rules kick in, the

Re: [systemd-devel] Renaming network interfaces: device or resource busy

2013-09-30 Thread Colin Guthrie
'Twas brillig, and Thomas Bächler at 30/09/13 16:42 did gyre and gimble: Am 30.09.2013 17:14, schrieb Colin Guthrie: Hi, Just trying to debug the problem mentioned in the subject. I'm wanting to use the new device names in stage 2 of our installer (some closing config routines write the

[systemd-devel] [HEADS-UP] systemd hackfest at FOSDEM 2014/Brussels or devconf.cz 2014/Brno?

2013-09-30 Thread Lennart Poettering
Heya! We are looking into organizing another systemd Hackfest early next year, either co-located with FOSDEM 2014 in Brussels (Feb. 1+2) or with devconf.cz 2014 in Brno (Feb 7-9). Now, we have the suspcicion that more people might be willing to attend if we host it at FOSDEM, but it would be

[systemd-devel] Randomly on shutdown, stop timeout for user at .service (repeated report, different user)

2013-09-30 Thread Toms Seisums
It appears that history repeats itself. Once (July 2013) a similar issue was reported here, by different user: http://lists.freedesktop.org/archives/systemd-devel/2013-July/012283.html I'm also using Arch Linux, systemd-207, linux-3.11.2. On shutdown and reboot, user@0.service occasionally

[systemd-devel] [HEADSUP] cgroup rework documentation

2013-09-30 Thread Lennart Poettering
Heya! We had been missing useful documentation on the new cgroup APIs that are supposed to replace the direct cgroupfs access of old. I closed that gap now: http://www.freedesktop.org/wiki/Software/systemd/ControlGroupInterface/ It's terse but should be fairly comprehensive. Light on examples

Re: [systemd-devel] Randomly on shutdown, stop timeout for user at .service (repeated report, different user)

2013-09-30 Thread Andrey Borzenkov
В Mon, 30 Sep 2013 18:55:14 +0300 Toms Seisums toms.seis...@gmail.com пишет: It appears that history repeats itself. Once (July 2013) a similar issue was reported here, by different user: http://lists.freedesktop.org/archives/systemd-devel/2013-July/012283.html I'm also using Arch Linux,

[systemd-devel] Fwd: Journalctl performance

2013-09-30 Thread Jason St. John
On Wed, Sep 25, 2013 at 8:44 AM, Frederic Crozat fcro...@suse.com wrote: Le mercredi 25 septembre 2013 à 12:10 +0100, Colin Guthrie a écrit : Hi, On a relatively average journal it can take a long time to page through all the data collected. With data stored from 5th August to 25th

Re: [systemd-devel] [HEADS-UP] systemd hackfest at FOSDEM 2014/Brussels or devconf.cz 2014/Brno?

2013-09-30 Thread Robert Schwebel
On Mon, Sep 30, 2013 at 05:52:32PM +0200, Lennart Poettering wrote: We are looking into organizing another systemd Hackfest early next year, either co-located with FOSDEM 2014 in Brussels (Feb. 1+2) or with devconf.cz 2014 in Brno (Feb 7-9). Now, we have the suspcicion that more people might

Re: [systemd-devel] [HEADS-UP] systemd hackfest at FOSDEM 2014/Brussels or devconf.cz 2014/Brno?

2013-09-30 Thread Jan Engelhardt
On Monday 2013-09-30 17:52, Lennart Poettering wrote: We are looking into organizing another systemd Hackfest early next year, either co-located with FOSDEM 2014 in Brussels (Feb. 1+2) or with devconf.cz 2014 in Brno (Feb 7-9). Now, we have the suspcicion that more people might be willing to

Re: [systemd-devel] [HEADS-UP] systemd hackfest at FOSDEM 2014/Brussels or devconf.cz 2014/Brno?

2013-09-30 Thread David Strauss
I would strongly prefer Brussels for travel reasons. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] [HEADS-UP] systemd hackfest at FOSDEM 2014/Brussels or devconf.cz 2014/Brno?

2013-09-30 Thread Michael Biebl
2013/9/30 Lennart Poettering lenn...@poettering.net: We are looking into organizing another systemd Hackfest early next year, either co-located with FOSDEM 2014 in Brussels (Feb. 1+2) or with devconf.cz 2014 in Brno (Feb 7-9). Now, we have the suspcicion that more people might be willing to

Re: [systemd-devel] Renaming network interfaces: device or resource busy

2013-09-30 Thread Lennart Poettering
On Mon, 30.09.13 16:14, Colin Guthrie (gm...@colin.guthr.ie) wrote: Hi, Just trying to debug the problem mentioned in the subject. I'm wanting to use the new device names in stage 2 of our installer (some closing config routines write the interface name into some conf files etc), but when

Re: [systemd-devel] Renaming network interfaces: device or resource busy

2013-09-30 Thread Lennart Poettering
On Mon, 30.09.13 17:42, Thomas Bächler (tho...@archlinux.org) wrote: Any application that listens on netlink for new network interfaces may start using the interface before udev has finished processing the uevent. IMO, this needs to be fixed in the kernel and udev, so that udev can have a

[systemd-devel] [PATCH] smack-setup: fix path to Smack/CIPSO mappings

2013-09-30 Thread Patrick McCarty
The correct path to the dir with CIPSO mappings is /etc/smack/cipso.d/; /etc/smack/cipso is a file that can include these mappings as well, though it is no longer supported in upstream libsmack. --- src/core/smack-setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [systemd-devel] Randomly on shutdown, stop timeout for user at .service (repeated report, different user)

2013-09-30 Thread Lennart Poettering
On Mon, 30.09.13 18:55, Toms Seisums (toms.seis...@gmail.com) wrote: It appears that history repeats itself. Once (July 2013) a similar issue was reported here, by different user: http://lists.freedesktop.org/archives/systemd-devel/2013-July/012283.html I'm also using Arch Linux,

Re: [systemd-devel] [PATCH] smack-setup: fix path to Smack/CIPSO mappings

2013-09-30 Thread Lennart Poettering
On Mon, 30.09.13 17:43, Patrick McCarty (patrick.mcca...@linux.intel.com) wrote: The correct path to the dir with CIPSO mappings is /etc/smack/cipso.d/; /etc/smack/cipso is a file that can include these mappings as well, though it is no longer supported in upstream libsmack. Thanks! Applied!

Re: [systemd-devel] [PATCH] fstab-generator: When parsing the root= cmdline option, set FsckPassNo to 1

2013-09-30 Thread Lennart Poettering
On Mon, 30.09.13 00:32, Thomas Bächler (tho...@archlinux.org) wrote: diff --git a/src/fstab-generator/fstab-generator.c b/src/fstab-generator/fstab-generator.c index 9efccb9..6cecb4e 100644 --- a/src/fstab-generator/fstab-generator.c +++ b/src/fstab-generator/fstab-generator.c @@ -449,7

Re: [systemd-devel] [PATCH 1/3] fstab-generator: Generate explicit dependencies on systemd-fsck@.service instead of using FsckPassNo

2013-09-30 Thread Lennart Poettering
On Mon, 30.09.13 01:34, Thomas Bächler (tho...@archlinux.org) wrote: I'd love to get rid of FsckPassNo=, but I fear that's not that easy... After all it's not just a boolean, it actually influences the ordering of the fsck. There traditionally were two documented phases which you could use to

Re: [systemd-devel] WiFi device starting a service

2013-09-30 Thread Lennart Poettering
On Sat, 28.09.13 00:22, Paul D. DeRocco (pdero...@ix.netcom.com) wrote: I'm working with a Gumstix, and I want to run an ifup command when the WiFi device becomes available. I'm not sure why, but it always seems to become available after the boot process is complete, so I can't use a regular

Re: [systemd-devel] [PATCH] Make upstart compatibility optional

2013-09-30 Thread Lennart Poettering
On Sun, 29.09.13 23:18, Cristian Rodríguez (crrodrig...@opensuse.org) wrote: El 29/09/13 15:11, Lennart Poettering escribió: On Fri, 27.09.13 23:04, Kay Sievers (k...@vrfy.org) wrote: On Fri, Sep 27, 2013 at 9:24 PM, Cristian Rodríguez crrodrig...@opensuse.org wrote: Distributions

Re: [systemd-devel] [PATCH] Make upstart compatibility optional

2013-09-30 Thread Lennart Poettering
On Mon, 30.09.13 08:44, Dave Reisner (d...@falconindy.com) wrote: I agree. We can't test this anyway anymore. I'd be happy to merge a patch that removes any Upstart compat support. Lennart OK, here we go...patch attached.. What about removing the TELINIT define in

Re: [systemd-devel] systemd should not call KDSKBMODE on a VT with X

2013-09-30 Thread Lennart Poettering
On Fri, 27.09.13 11:43, Arthur Taylor (a...@ified.ca) wrote: This is an old thread from February. Sorry I can't reply to the original email. Apparently I failed to notice this question. My bad. Hello systemd developers TL;DR: On a VT which X is running, messing with KDSKBMODE on

Re: [systemd-devel] Start and stop requests for a service

2013-09-30 Thread Lennart Poettering
On Fri, 27.09.13 11:37, Umut Tezduyar (u...@tezduyar.com) wrote: Hi, I have noticed that ExecStop is not being run on following service with following requests: [Service] Type=oneshot RemainAfterExit=yes ExecStart=/bin/sh -c sleep 20 /usr/bin/systemd-cat echo ExecStart..

Re: [systemd-devel] Fwd: Journalctl performance

2013-09-30 Thread Lennart Poettering
On Mon, 30.09.13 12:48, Jason St. John (jstj...@purdue.edu) wrote: I've been seeing similar performance issues with the journal for several recent versions of systemd (at least from v204 through v207 on Arch Linux). I have journal logs from 2012-10-20 through today that contain 1,268,128

Re: [systemd-devel] How to add a dependency to a systemd.mount that is activated by /bin/mount?

2013-09-30 Thread Lennart Poettering
On Wed, 25.09.13 01:11, Tim Landscheidt (t...@tim-landscheidt.de) wrote: On mount /mnt/test, however, systemctl status mnt-test.mount mount-wrapper shows the latter service being inactive (dead), while the former is active (mounted). How can I (or can I not?) set up a dependency that is

Re: [systemd-devel] Patches to use -.mount without /etc/fstab

2013-09-30 Thread Lennart Poettering
On Tue, 24.09.13 13:53, Kelly Anderson (ke...@xilka.com) wrote: Hello, If I'm not mistaken, the intent way back in the early stages of systemd was to eliminate /etc/fstab and use .mount files exclusively. Since it was never fully implemented I took the prerogative to make it work on my

Re: [systemd-devel] [PATCH] Add SHELL environment variable

2013-09-30 Thread Lennart Poettering
On Mon, 23.09.13 21:01, Evan Callicoat (a...@propter.net) wrote: Thanks! Applied! With the advent of systemd --user sessions, it's become very interesting to spawn X as a user unit, as well as accompanying processes that may have previously been in a .xinitrc/.xsession, or even just to

Re: [systemd-devel] [PATCH 1/3] fstab-generator: Generate explicit dependencies on systemd-fsck@.service instead of using FsckPassNo

2013-09-30 Thread Tom Gundersen
On Tue, Oct 1, 2013 at 3:07 AM, Lennart Poettering lenn...@poettering.net wrote: On Mon, 30.09.13 01:34, Thomas Bächler (tho...@archlinux.org) wrote: I'd love to get rid of FsckPassNo=, but I fear that's not that easy... After all it's not just a boolean, it actually influences the ordering

Re: [systemd-devel] [RFC] iscsid / systemd / dracut integration effort

2013-09-30 Thread Lennart Poettering
On Mon, 23.09.13 10:33, The Lee-Man (leeman.dun...@gmail.com) wrote: After=network.target NetworkManager-wait-online.service tgtd.service targetcli.service Please use network-online.target here instead of NetworkManager-wait-online.service. Please see the discussion of this unit on:

Re: [systemd-devel] [PATCH 1/3] fstab-generator: Generate explicit dependencies on systemd-fsck@.service instead of using FsckPassNo

2013-09-30 Thread Kay Sievers
On Tue, Oct 1, 2013 at 4:29 AM, Lennart Poettering lenn...@poettering.net wrote: On Tue, 01.10.13 04:19, Tom Gundersen (t...@jklm.no) wrote: I'd love to get rid of FsckPassNo=, but I fear that's not that easy... After all it's not just a boolean, it actually influences the ordering of the

Re: [systemd-devel] Some thoughts about loop_read/loop_write in util.c

2013-09-30 Thread Lennart Poettering
On Fri, 13.09.13 08:38, cee1 (fykc...@gmail.com) wrote: 2013/9/12 Lennart Poettering lenn...@poettering.net: On Thu, 12.09.13 09:43, cee1 (fykc...@gmail.com) wrote: What about the following patch? It simply do read/write again if poll returns, and let read/write report error if something

Re: [systemd-devel] [PATCH] Fix timeout when stopping Type=notify service

2013-09-30 Thread Lennart Poettering
On Fri, 20.09.13 22:53, Olivier Brunel (j...@jjacky.com) wrote: Since 41efeaec a call to service_unwatch_main_pid() is done from service_set_main_pid(), which is called upon receiving message MAINPID= This had the side effect of not watching pid anymore, and would result in a useless

Re: [systemd-devel] [PATCH 1/3] fstab-generator: Generate explicit dependencies on systemd-fsck@.service instead of using FsckPassNo

2013-09-30 Thread Lennart Poettering
On Tue, 01.10.13 04:42, Kay Sievers (k...@vrfy.org) wrote: On Tue, Oct 1, 2013 at 4:29 AM, Lennart Poettering lenn...@poettering.net wrote: On Tue, 01.10.13 04:19, Tom Gundersen (t...@jklm.no) wrote: I'd love to get rid of FsckPassNo=, but I fear that's not that easy... After all