Re: [systemd-devel] /etc/systemd/system/darkice.service

2013-07-24 Thread Kai Hendry
On 22 July 2013 23:56, Andrey Borzenkov arvidj...@gmail.com wrote: network-online.target has no requirement for pingtest.service. All that this configuration does is delaying network-online.target by at most 60 seconds, that's all. If network is not up at this point - too bad. That ping switch

[systemd-devel] systemd service file type

2013-07-24 Thread Muhammad Shakeel
Hi all, Is there any limitation on file types which can act as a valid unit file for systemd? I have seen .socket, .mount, .path and of-course .service. Or any file with valid syntax can act as a systemd unit file? Thanks Shakeel ___ systemd-devel

Re: [systemd-devel] systemd service file type

2013-07-24 Thread William Giokas
On Wed, Jul 24, 2013 at 12:21:00PM +0500, Muhammad Shakeel wrote: Hi all, Is there any limitation on file types which can act as a valid unit file for systemd? I have seen .socket, .mount, .path and of-course .service. Or any file with valid syntax can act as a systemd unit file? No,

Re: [systemd-devel] udev/systemd/pulseaudio/lirc please improve hotplugging

2013-07-24 Thread Colin Guthrie
'Twas brillig, and Damian Ivanov at 23/07/13 13:01 did gyre and gimble: Hey guys, udev/systemd/pulseaudio/lirc should provide a maximum amount of hotplugging, there are dozens of questions and bug reports on the net about the creative X-fi USB sound card on Linux. The sound itself works,

Re: [systemd-devel] Patch for Smack labelling support in udev

2013-07-24 Thread Reshetova, Elena
-Original Message- From: Kay Sievers [mailto:k...@vrfy.org] Sent: Tuesday, July 16, 2013 10:12 PM To: Reshetova, Elena Cc: Lennart Poettering; systemd-devel@lists.freedesktop.org; Ware, Ryan R; Schaufler, Casey; walyong@samsung.com Subject: Re: [systemd-devel] Patch for Smack labelling

Re: [systemd-devel] /etc/systemd/system/darkice.service

2013-07-24 Thread Colin Guthrie
'Twas brillig, and Kai Hendry at 24/07/13 08:10 did gyre and gimble: On 22 July 2013 23:56, Andrey Borzenkov arvidj...@gmail.com wrote: network-online.target has no requirement for pingtest.service. All that this configuration does is delaying network-online.target by at most 60 seconds,

Re: [systemd-devel] I caught a something wrong when I analyzed a systemd on my board by systemd-analyze plot

2013-07-24 Thread Colin Guthrie
'Twas brillig, and Tony Seo at 24/07/13 01:57 did gyre and gimble: Hello. I had analyzed my systemd by using systemd-analyze plot. But I caught a something wrong related with boot sequence time. After I started my board, I checked the first boot image about 8 sec. What do you use to

Re: [systemd-devel] systemd shutdown vs ostree

2013-07-24 Thread Colin Guthrie
'Twas brillig, and Colin Walters at 20/07/13 23:50 did gyre and gimble: So OSTree sets up systemd inside a chroot - /usr is a read-only bind mount, and /var is a bind mount outside the root to a shared location. Furthermore, /sysroot points to the real root. Since last time we discussed

Re: [systemd-devel] [PATCH v2] shell-completion: Add machinectl zsh completion

2013-07-24 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Jul 23, 2013 at 09:55:22PM -0500, William Giokas wrote: shell-completion/systemd-zsh-completion.zsh | 49 - 1 file changed, 48 insertions(+), 1 deletion(-) Applied. Zbyszek ___ systemd-devel mailing list

[systemd-devel] Error handling problems with systemd-machined

2013-07-24 Thread Daniel P. Berrange
I'm working on integrating libvirt with systemd-machined for cgroups setup and hitting a number of problems The first was that v205 ignores all parameters passed though as scope properties in the DBus CreateMachine call. So I upgraded to v206 which seems to have fixed that. When something goes

Re: [systemd-devel] systemd shutdown vs ostree

2013-07-24 Thread Daniel P. Berrange
On Sat, Jul 20, 2013 at 06:50:13PM -0400, Colin Walters wrote: So OSTree sets up systemd inside a chroot - /usr is a read-only bind mount, and /var is a bind mount outside the root to a shared location. Furthermore, /sysroot points to the real root. Since last time we discussed this:

[systemd-devel] [PATCH] tmpfiles: don't apply --create to /dev twice during boot

2013-07-24 Thread Tom Gundersen
We used to call systemd-tmpfiles --prefix=/dev --create --remove systemd-udevd systemd-tmpfiles --create --remove which caused a bug: The first call would create dead device nodes, udev would change permissions on these nodes, before the second call to tmpfiles would reset the permissions

Re: [systemd-devel] Error handling problems with systemd-machined

2013-07-24 Thread Daniel P. Berrange
On Wed, Jul 24, 2013 at 02:13:30PM +0100, Daniel P. Berrange wrote: I'm working on integrating libvirt with systemd-machined for cgroups setup and hitting a number of problems A further discovery - if I pass MemoryAccounting=yes as a scope property, then the process gets immediately killed by

Re: [systemd-devel] [PATCH] tmpfiles: don't apply --create to /dev twice during boot

2013-07-24 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Jul 24, 2013 at 03:32:55PM +0200, Tom Gundersen wrote: Instead allow negation in the prefix filtering, to restrict the second call to apply to everything but /dev: systemd-tmpfiles --prefix=!/dev --create --remove It's unfortunate that ! is a shell meta character. Maybe - would be

Re: [systemd-devel] [PATCH] tmpfiles: don't apply --create to /dev twice during boot

2013-07-24 Thread Tom Gundersen
On Wed, Jul 24, 2013 at 3:49 PM, Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl wrote: On Wed, Jul 24, 2013 at 03:32:55PM +0200, Tom Gundersen wrote: Instead allow negation in the prefix filtering, to restrict the second call to apply to everything but /dev: systemd-tmpfiles --prefix=!/dev

[systemd-devel] [PATCHv2] tmpfiles: don't apply --create to /dev twice during boot

2013-07-24 Thread Tom Gundersen
We used to call systemd-tmpfiles --prefix=/dev --create --remove systemd-udevd systemd-tmpfiles --create --remove which caused a bug: The first call would create dead device nodes, udev would change permissions on these nodes, before the second call to tmpfiles would reset the permissions

Re: [systemd-devel] [PATCH] tmpfiles: don't apply --create to /dev twice during boot

2013-07-24 Thread Lennart Poettering
On Wed, 24.07.13 15:49, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: On Wed, Jul 24, 2013 at 03:32:55PM +0200, Tom Gundersen wrote: Instead allow negation in the prefix filtering, to restrict the second call to apply to everything but /dev: systemd-tmpfiles --prefix=!/dev

Re: [systemd-devel] [PATCHv2] tmpfiles: don't apply --create to /dev twice during boot

2013-07-24 Thread Lennart Poettering
On Wed, 24.07.13 16:08, Tom Gundersen (t...@jklm.no) wrote: Indentation is borked. Please fix. Please use two strv arrays, one prefix array, and one exclude_prefix array. And introduce --exclude-prefix= to control the latter. --- v2: use --prefix=-/dev, rather than --prefix=!/dev to avoid

Re: [systemd-devel] Error handling problems with systemd-machined

2013-07-24 Thread Daniel P. Berrange
On Wed, Jul 24, 2013 at 02:36:44PM +0100, Daniel P. Berrange wrote: On Wed, Jul 24, 2013 at 02:13:30PM +0100, Daniel P. Berrange wrote: I'm working on integrating libvirt with systemd-machined for cgroups setup and hitting a number of problems A further discovery - if I pass

[systemd-devel] [PATCH 1/2] tmpfiles: support passing --prefix multiple times

2013-07-24 Thread Dave Reisner
--- man/systemd-tmpfiles.xml | 3 ++- src/tmpfiles/tmpfiles.c | 24 +--- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/man/systemd-tmpfiles.xml b/man/systemd-tmpfiles.xml index 405a9f1..b0f2d9c 100644 --- a/man/systemd-tmpfiles.xml +++

[systemd-devel] [PATCH 2/2] tmpfiles: introduce --exclude-prefix

2013-07-24 Thread Dave Reisner
The opposite of --prefix, allows specifying path prefixes which should be skipped when processing rules. --- man/systemd-tmpfiles.xml| 7 shell-completion/systemd-zsh-completion.zsh | 1 + src/tmpfiles/tmpfiles.c | 50 + 3

Re: [systemd-devel] [PATCH 2/2] tmpfiles: introduce --exclude-prefix

2013-07-24 Thread Lennart Poettering
On Wed, 24.07.13 11:25, Dave Reisner (dreis...@archlinux.org) wrote: static char **include_prefixes = NULL; +static char **exclude_prefixes = NULL; static const char conf_file_dirs[] = /etc/tmpfiles.d\0 @@ -1018,6 +1019,21 @@ static bool item_equal(Item *a, Item *b) {

Re: [systemd-devel] I caught a something wrong when I analyzed a systemd on my board by systemd-analyze plot (Colin Guthrie)

2013-07-24 Thread Colin Guthrie
Hi Tony, Please keep the replies on the list as others may find your posts useful or be able to help. The full plot svg would still be useful. Ideally post it somewhere and then include a link. I'm not sure why dietsplash.service wasn't tracked, but it should really be shown if it is indeed

Re: [systemd-devel] Error handling problems with systemd-machined

2013-07-24 Thread Lennart Poettering
On Wed, 24.07.13 14:13, Daniel P. Berrange (berra...@redhat.com) wrote: I'm working on integrating libvirt with systemd-machined for cgroups setup and hitting a number of problems The first was that v205 ignores all parameters passed though as scope properties in the DBus CreateMachine

Re: [systemd-devel] [PATCH 2/2] tmpfiles: introduce --exclude-prefix

2013-07-24 Thread Dave Reisner
On Wed, Jul 24, 2013 at 05:40:21PM +0200, Lennart Poettering wrote: On Wed, 24.07.13 11:25, Dave Reisner (dreis...@archlinux.org) wrote: static char **include_prefixes = NULL; +static char **exclude_prefixes = NULL; static const char conf_file_dirs[] = /etc/tmpfiles.d\0

Re: [systemd-devel] systemd service file type

2013-07-24 Thread Lennart Poettering
On Wed, 24.07.13 12:21, Muhammad Shakeel (muhammad_shak...@mentor.com) wrote: Hi all, Is there any limitation on file types which can act as a valid unit file for systemd? I have seen .socket, .mount, .path and of-course .service. Or any file with valid syntax can act as a systemd unit

Re: [systemd-devel] Error handling problems with systemd-machined

2013-07-24 Thread Daniel P. Berrange
On Wed, Jul 24, 2013 at 05:59:48PM +0200, Lennart Poettering wrote: When something goes wrong with the CreateMachine DBus call though all I ever seem to get back is Input/output error. After strace'ing systemd-machined I find the real error recvmsg(5, {msg_name(0)=NULL,

Re: [systemd-devel] Error handling problems with systemd-machined

2013-07-24 Thread Daniel P. Berrange
On Wed, Jul 24, 2013 at 05:10:59PM +0100, Daniel P. Berrange wrote: On Wed, Jul 24, 2013 at 05:59:48PM +0200, Lennart Poettering wrote: Once I fixed the unit name to removing the leading '/', I hit a second error recvmsg(5, {msg_name(0)=NULL,

[systemd-devel] I want to ask you a fundamental question to you about dependency and starting sequence among units.

2013-07-24 Thread Tony Seo
Hello. As I'm a starter in systemd, I want to ask you a fundamental question. That is how to understand existing relation from dependent and starting perspective. If you check a image file I attached, it' more clear. Actually, I have studied systemd structure to add my processes in

Re: [systemd-devel] /etc/systemd/system/darkice.service

2013-07-24 Thread Andrey Borzenkov
В Wed, 24 Jul 2013 15:10:01 +0800 Kai Hendry hen...@iki.fi пишет: On 22 July 2013 23:56, Andrey Borzenkov arvidj...@gmail.com wrote: network-online.target has no requirement for pingtest.service. All that this configuration does is delaying network-online.target by at most 60 seconds,

Re: [systemd-devel] I want to ask you a fundamental question to you about dependency and starting sequence among units.

2013-07-24 Thread Mantas Mikulėnas
On Wed, Jul 24, 2013 at 7:15 PM, Tony Seo tonys...@gmail.com wrote: When I first read a manpage which explains [Unit] option, I find a Wants=. For example, I make a A.service which has an Want = B.service. If A.service is started by systemd, I think that B.service will be started after

[systemd-devel] [206] Randomly on shutdown, stop timeout for user@.service

2013-07-24 Thread Gerardo Exequiel Pozzi
Hello I am using Arch Linux, and testing systemd-206 with linux-3.10.2 on shutdown, sometimes randomly there is a long delay until user@0.service timeouts then systemd kills it. 1) Boot machine 2) Login as root 3) Execute systemctl reboot or reboot/poweroff/etc. I see this behaviour in a real

Re: [systemd-devel] [206] Randomly on shutdown, stop timeout for user@.service

2013-07-24 Thread Armin K.
On 24.7.2013 20:50, Cristian Rodríguez wrote: El 24/07/13 14:07, Gerardo Exequiel Pozzi escribió: Hello I am using Arch Linux, and testing systemd-206 with linux-3.10.2 on shutdown, sometimes randomly there is a long delay until user@0.service timeouts then systemd kills it. I am seeing a

[systemd-devel] Profiling systemctl daemon-reload

2013-07-24 Thread David Strauss
With thousands of units, doing a daemon-reload puts a surprisingly huge CPU and memory burden on the system. Has anyone profiled why? I'd like to get started on optimizing this, but I'll obviously need to understand where the problem is first. -- David Strauss | da...@davidstrauss.net | +1

[systemd-devel] [PATCH] Drop ConditionCapability=CAP_MKNOD from *udev* units

2013-07-24 Thread Gerardo Exequiel Pozzi
Signed-off-by: Gerardo Exequiel Pozzi vmlinuz...@yahoo.com.ar --- units/systemd-udev-settle.service.in | 1 - units/systemd-udev-trigger.service.in | 1 - units/systemd-udevd-control.socket| 1 - units/systemd-udevd-kernel.socket | 1 - 4 files changed, 4 deletions(-) diff --git

Re: [systemd-devel] [206] Randomly on shutdown, stop timeout for user@.service

2013-07-24 Thread Cristian Rodríguez
El 24/07/13 15:40, Armin K. escribió: I have been seeing the same behaviour for a long time (since 19x releases). Can't be the same, there were no .scope units in that releases. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org

[systemd-devel] [PATCH v3] shell-completion: Add new journalctl options

2013-07-24 Thread William Giokas
New options: * -e, --pager-end * -r, --reverse * -x, --catalog * -k, --dmesg * --after-cursor * --file * --root * --dump-catalog * --force Modified options: * --this-boot - --boot= Also reorganized the options to match the manual page, similar to systemctl. --- Using --boot now completes to

Re: [systemd-devel] Profiling systemctl daemon-reload

2013-07-24 Thread Kay Sievers
On Wed, Jul 24, 2013 at 10:26 PM, David Strauss da...@davidstrauss.net wrote: With thousands of units, doing a daemon-reload puts a surprisingly huge CPU and memory burden on the system. Has anyone profiled why? I'd like to get started on optimizing this, but I'll obviously need to understand

Re: [systemd-devel] /etc/systemd/system/darkice.service

2013-07-24 Thread Kai Hendry
On 25 July 2013 00:56, Andrey Borzenkov arvidj...@gmail.com wrote: Do you really want all your services that depend on network being up to fail if your AP is busy and needs 61 seconds to establish connection? Firstly I use a PI with a wired connection with netctl ifplugd. I don't know if there

Re: [systemd-devel] /etc/systemd/system/darkice.service

2013-07-24 Thread Kai Hendry
On 24 July 2013 20:26, Colin Guthrie gm...@colin.guthr.ie wrote: Also as the previous enable would have written the .wants symlink, ti's probably work doing a rm -f /etc/systemd/system/network-online.target.wants/pingtest.service to ensure it's cleaned out properly (in theory it shouldn't do

Re: [systemd-devel] /etc/systemd/system/darkice.service

2013-07-24 Thread Kai Hendry
On 25 July 2013 12:55, Kai Hendry hen...@iki.fi wrote: Though if you take a look at http://ix.io/6Rz you can see `systemctl show -p Requires network-online.target` does not work for some reason. I was expecting it to say darkice.service. I probably just don't understand how dependencies work