Re: [systemd-devel] Get exit status inside ExecStopPost ?

2014-04-21 Thread Lennart Poettering
On Fri, 11.04.14 12:19, Anand Patil ([email protected]) wrote: > Hi everyone, > > In a service's ExecStopPost, is there an easy way to access the exit status > of the service's ExecStart process? Read the ExecMainCode and ExecMainStatus properties of the Service bus object. They co

Re: [systemd-devel] Default file permissions in user mode

2014-04-21 Thread Lennart Poettering
On Sat, 12.04.14 12:14, Tanu Kaskinen ([email protected]) wrote: > Hi, > > The systemd.socket man page says that the default value for > DirectoryMode is 0755. Judging from the code in the socket_init() > function, the documentation matches the implementation. 0755 seems > appropriate

Re: [systemd-devel] Systemd askpassword

2014-04-21 Thread Lennart Poettering
On Sat, 12.04.14 22:08, Ismael Bouya ([email protected]) wrote: > (Side question: Is there a way to say that systemd-tty-ask-password-agent > can be run by the user and not only by root to mount the disk? If he know > the disk password then he's most probably allowed to mount it...) The

Re: [systemd-devel] [PATCH] systemctl: allow to change the default target without the --force switch

2014-04-21 Thread Lennart Poettering
On Mon, 14.04.14 01:07, Djalal Harouni ([email protected]) wrote: > Currently "systemctl set-default" will fail to change the default target > due to the 'default.target' being a symlink which is always the case. Humm, no? Normally default.target should not exist in /etc, only in /usr. This means

Re: [systemd-devel] [PATCH] systemctl: "systemctl --root=container/ set-default ... is totally borked."

2014-04-21 Thread Lennart Poettering
On Thu, 17.04.14 10:40, Jan Chaloupka ([email protected]) wrote: > On 04/17/2014 04:59 AM, Zbigniew Je;drzejewski-Szmek wrote: > >On Thu, Apr 17, 2014 at 01:41:51AM +0100, Djalal Harouni wrote: > >>BTW, I've a question, why there is this item in the TODO: > >>"systemctl --root=container/ set-def

Re: [systemd-devel] bus driver on kdbus

2014-04-21 Thread Lennart Poettering
On Mon, 14.04.14 14:16, Ryan Lortie ([email protected]) wrote: > Before we realised that this bug was a problem, however, having the bus > driver was clearly closer to "classic dbus-1". Yupp, and we do revisit what we do from time to time and do change our opinions after consideration, which any eng

Re: [systemd-devel] Persistent timers delay Type=idle units

2014-04-21 Thread Lennart Poettering
On Fri, 18.04.14 11:34, Thomas Bächler ([email protected]) wrote: > According to [1], when a persistent timer runs its service on boot, it > delays startup. Humm? What precisely do you mean by "delays bootup"? Just scheduling a timer unit should have about zero effect on boot times... If it d

Re: [systemd-devel] mount failed during system start but after "systemctl daemon-reload" everything works

2014-04-21 Thread Lennart Poettering
On Fri, 18.04.14 10:32, Oliver ([email protected]) wrote: > Hello. > Could anyone tell me a reason why a mount (regardless of via fstab > or "mountpoint.mount" unit file) during system boot leads to a > timeout because of device timeout and after i do a "systemctl > daemon-reload" the mo

Re: [systemd-devel] Unit configuration for S3QL filesystem

2014-04-21 Thread Lennart Poettering
On Mon, 21.04.14 19:05, Diogo Vieira ([email protected]) wrote: > Hello, > > I'm trying to create a unit to automatically mount a fuse filesystem > known as S3QL, which is the one in question in this older thread: > http://lists.freedesktop.org/archives/systemd-devel/2012-May/005062.html. The > pr

Re: [systemd-devel] Cache passphrase for cryptsetup?

2014-04-21 Thread Lennart Poettering
On Sat, 19.04.14 13:49, Nikolaus Rath ([email protected]) wrote: > Hello, > > I have several LUKS encrypted volumes that use the same > passphrase. Before switching to systemd, I have used the decrypt_keyctl > keyscript to cache the passphrase, so that I have to enter it only once. > > As far as

Re: [systemd-devel] systemd-networkd bridge with DHCP not working

2014-04-21 Thread Tom Gundersen
On Mon, Apr 21, 2014 at 6:45 PM, Tom Gundersen wrote: > On Fri, Mar 21, 2014 at 10:15 PM, Tom Gundersen wrote: >> On Fri, Mar 21, 2014 at 9:47 PM, Henrik /KaarPoSoft >> wrote: >>> However, I find it disturbing that DHCP is attempted first on the "wrong" >>> MAC, only to be killed and restarted o

[systemd-devel] Unit configuration for S3QL filesystem

2014-04-21 Thread Diogo Vieira
Hello, I'm trying to create a unit to automatically mount a fuse filesystem known as S3QL, which is the one in question in this older thread: http://lists.freedesktop.org/archives/systemd-devel/2012-May/005062.html. The problem seems to be that after unmounting the filesystem it still needs net

Re: [systemd-devel] [PATCH] libudev: replace name_to_handle_at with normal sscanf

2014-04-21 Thread Kay Sievers
On Sun, Apr 20, 2014 at 8:08 PM, Zbigniew Jędrzejewski-Szmek wrote: > On Sun, Apr 20, 2014 at 03:53:05PM +0200, Kay Sievers wrote: >> On Sun, Apr 20, 2014 at 5:36 AM, Zbigniew Jędrzejewski-Szmek >> wrote: >> >> > Hi Kay, >> > it seems that handles are not crucial, and the simplified version below

Re: [systemd-devel] systemd-networkd bridge with DHCP not working

2014-04-21 Thread Tom Gundersen
On Fri, Mar 21, 2014 at 10:15 PM, Tom Gundersen wrote: > On Fri, Mar 21, 2014 at 9:47 PM, Henrik /KaarPoSoft > wrote: >> However, I find it disturbing that DHCP is attempted first on the "wrong" >> MAC, only to be killed and restarted on the "right" MAC. >> Is this really the best way of solving

Re: [systemd-devel] [systemd-commits] 3 commits - src/libsystemd src/network src/udev

2014-04-21 Thread Kay Sievers
On Sun, Apr 20, 2014 at 10:48 PM, Tom Gundersen wrote: > On Sun, Apr 20, 2014 at 3:16 PM, Zbigniew Jędrzejewski-Szmek > wrote: >> On Sun, Apr 20, 2014 at 05:45:18AM -0700, Tom Gundersen wrote: >>> commit 6190b9f9d2574428d560458a99f2838041cfdaac >>> Author: Tom Gundersen >>> Date: Sun Apr 20 07

Re: [systemd-devel] [PATCH 2/2] service: add support for reboot argument when triggered by StartLimitAction=

2014-04-21 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Mar 25, 2014 at 02:15:45PM +0100, Michael Olbrich wrote: > When rebooting with systemctl, an optional argument can be passed to the > reboot system call. This makes it possible the specify the argument in a > service file and use it when the service triggers a restart. > This is useful to d

Re: [systemd-devel] [PATCH] core: add startup resource control option

2014-04-21 Thread WaLyong Cho
On 03/26/2014 12:12 AM, WaLyong Cho wrote: > On 03/25/2014 05:01 AM, Lennart Poettering wrote: >> On Tue, 25.03.14 01:03, WaLyong Cho ([email protected]) wrote: >> >>> /* Figure out which controllers we need */ >>> >>> -if (c->cpu_accounting || c->cpu_shares != 1024) >>> +

Re: [systemd-devel] networkd slaac and radv

2014-04-21 Thread Vasiliy Tolstov
2014-04-21 11:06 GMT+04:00 Tom Gundersen : > Hi Vasiliy, > > Currently we don't handle this in networkd, sorry. It is on the TODO. > > Cheers, Thanks! Does it possible to create some workaround now in my case for this? Or only creating custom unit for network solves this? -- Vasiliy Tolstov, e-

Re: [systemd-devel] networkd slaac and radv

2014-04-21 Thread Tom Gundersen
On Mon, Apr 21, 2014 at 6:57 AM, Vasiliy Tolstov wrote: > 2014-04-11 2:36 GMT+04:00 Vasiliy Tolstov : >> Hello. How can i via networkd can configure network interface to use >> radv provided prefixes? >> For example after boot interface is up and have SLAAC generated >> address (link local) after