Re: [systemd-devel] OT: Which tool to use to restart service if check-script fails

2016-05-27 Thread Reindl Harald
Am 27.05.2016 um 06:48 schrieb Thomas Güttler: OK, I understand that I need different tool to restart a service if a check-script fails. In my case the check script will be custom code. But the restart stuff is very general and reusable: Step1: Call check-script Step2: If exit 0 (meaning se

[systemd-devel] wishlist: Allow binding unit state to a path state

2016-05-27 Thread Yanko Kaneti
Hello, I wish systemd would let me control the dumbest of services via the dumbest way possible, which would be the presence or lack of a file in the filesystem.  It looks like all the machinery required is already there in the .path and .service logic. Regards Yanko _

Re: [systemd-devel] [ANNOUNCE] systemd v230

2016-05-27 Thread Reindl Harald
Am 22.05.2016 um 00:51 schrieb Zbigniew Jędrzejewski-Szmek: * systemd-logind will now by default terminate user processes that are part of the user session scope unit (session-XX.scope) when the user logs out. This behavior is controlled by the KillUserProcesses=

Re: [systemd-devel] [ANNOUNCE] systemd v230

2016-05-27 Thread Reindl Harald
Am 27.05.2016 um 12:10 schrieb Reindl Harald: Am 22.05.2016 um 00:51 schrieb Zbigniew Jędrzejewski-Szmek: * systemd-logind will now by default terminate user processes that are part of the user session scope unit (session-XX.scope) when the user logs out. This beh

Re: [systemd-devel] [ANNOUNCE] systemd v230

2016-05-27 Thread Mantas Mikulėnas
On Fri, May 27, 2016 at 1:16 PM, Reindl Harald wrote: > > > Am 27.05.2016 um 12:10 schrieb Reindl Harald: > >> >> >> Am 22.05.2016 um 00:51 schrieb Zbigniew Jędrzejewski-Szmek: >> >>> * systemd-logind will now by default terminate user processes >>> that are >>> part of the user

Re: [systemd-devel] [ANNOUNCE] systemd v230

2016-05-27 Thread Reindl Harald
Am 27.05.2016 um 12:45 schrieb Mantas Mikulėnas: On Fri, May 27, 2016 at 1:16 PM, Reindl Harald mailto:h.rei...@thelounge.net>> wrote: Am 27.05.2016 um 12:10 schrieb Reindl Harald: Am 22.05.2016 um 00:51 schrieb Zbigniew Jędrzejewski-Szmek: * systemd-logind wi

[systemd-devel] issues setting limits on the fly for services/scopes in user slice

2016-05-27 Thread jsl6uy js16uy
Hello All, hope all is well On arch linux Linux X 4.5.3-1-ARCH #1 SMP PREEMPT Sat May 7 20:43:57 CEST 2016 x86_64 GNU/Linux local/libsystemd 229-3 systemd client libraries local/systemd 229-3 system and service manager local/systemd-sysvcompat 229-3 (base) sysvinit compat for systemd

Re: [systemd-devel] issues setting limits on the fly for services/scopes in user slice

2016-05-27 Thread Lennart Poettering
On Fri, 27.05.16 09:03, jsl6uy js16uy (js1...@gmail.com) wrote: > systemctl --user set-property foo.scope CPUQuota='5%' > or > systemctl set-property --user --runtime foo.scope CPUQuota='5%' This is not supported with the classic cgroups hierarchy, as resource controller delegation to unprivilege

Re: [systemd-devel] issues setting limits on the fly for services/scopes in user slice

2016-05-27 Thread jsl6uy js16uy
Understood thanks much sir and now at least I know I'm not crazy for that reason ;) On Fri, May 27, 2016 at 9:27 AM, Lennart Poettering wrote: > On Fri, 27.05.16 09:03, jsl6uy js16uy (js1...@gmail.com) wrote: > > > systemctl --user set-property foo.scope CPUQuota='5%' > > or > > systemctl set-pr

Re: [systemd-devel] when/where was support for assigning "ethX" names removed?

2016-05-27 Thread Lennart Poettering
On Thu, 26.05.16 12:28, Chris Friesen (cbf...@mail.usask.ca) wrote: > So I've been playing with this a bit, but I've run into another snag. It > seems that on initial boot even with "net.ifnames=0" the ethernet interface > ordering isn't consistent. > > This means that two systems with identical

[systemd-devel] ipv6 configuration error

2016-05-27 Thread Michał Zegan
Hello, I have encountered a very interesting problem: I have a wired ipv4 network configured via systemd-network, and an ipv6 sit tunnel. The problem is it does not start. trying to restart systemd-networkd gives the error like both local and remote addresses of the tunnel are incompatible. I assum

Re: [systemd-devel] when/where was support for assigning "ethX" names removed?

2016-05-27 Thread Chris Friesen
On 05/27/2016 08:36 AM, Lennart Poettering wrote: On Thu, 26.05.16 12:28, Chris Friesen (cbf...@mail.usask.ca) wrote: So I've been playing with this a bit, but I've run into another snag. It seems that on initial boot even with "net.ifnames=0" the ethernet interface ordering isn't consistent.

Re: [systemd-devel] when/where was support for assigning "ethX" names removed?

2016-05-27 Thread Michael Biebl
2016-05-27 17:14 GMT+02:00 Chris Friesen : > And the annoying thing is that if I turn off the new naming scheme there > seems to be less determinism than there used to be. I assume this is due to > the effort to extract more parallelism at boot, but it's causing me grief. The old network interfac

Re: [systemd-devel] when/where was support for assigning "ethX" names removed?

2016-05-27 Thread Chris Friesen
On 05/27/2016 09:43 AM, Michael Biebl wrote: 2016-05-27 17:14 GMT+02:00 Chris Friesen : And the annoying thing is that if I turn off the new naming scheme there seems to be less determinism than there used to be. I assume this is due to the effort to extract more parallelism at boot, but it's c

[systemd-devel] systemd-analyze for shutdown?

2016-05-27 Thread Nikolaus Rath
Hello, Is there a way to run systemd-analyze for system shutdown, instead of boot-up? I am pretty sure that my system takes way longer than it should to power off, but the "shutdown-log.txt" technique from https://freedesktop.org/wiki/Software/systemd/Debugging/#index2h1 doesn't show anything obv

Re: [systemd-devel] when/where was support for assigning "ethX" names removed?

2016-05-27 Thread Michael Biebl
2016-05-27 17:51 GMT+02:00 Chris Friesen : > The issue is not that the renaming fails (I actually modified the kernel to > start at eth1000 so there is no possibility of collision). > > The problem is that the kernel-assigned "ethX" names are not deterministic. > If I take two identical systems and

Re: [systemd-devel] when/where was support for assigning "ethX" names removed?

2016-05-27 Thread Greg KH
On Fri, May 27, 2016 at 09:14:51AM -0600, Chris Friesen wrote: > On 05/27/2016 08:36 AM, Lennart Poettering wrote: > > On Thu, 26.05.16 12:28, Chris Friesen (cbf...@mail.usask.ca) wrote: > > > > > So I've been playing with this a bit, but I've run into another snag. It > > > seems that on initial

Re: [systemd-devel] when/where was support for assigning "ethX" names removed?

2016-05-27 Thread Lennart Poettering
On Fri, 27.05.16 09:14, Chris Friesen (cbf...@mail.usask.ca) wrote: > >Well, udev just modprobes the driver. The driver then probes all > >devices and that happens in any order it likes. > > Looking at the kernel code, the probing order for pci NICs for a given > driver is pretty well determinist

Re: [systemd-devel] systemd-analyze for shutdown?

2016-05-27 Thread Lennart Poettering
On Fri, 27.05.16 08:46, Nikolaus Rath (nikol...@rath.org) wrote: > Hello, > > Is there a way to run systemd-analyze for system shutdown, instead of > boot-up? > > I am pretty sure that my system takes way longer than it should to power > off, but the "shutdown-log.txt" technique from > https://f

Re: [systemd-devel] How do I hook into ACPI events?

2016-05-27 Thread Lennart Poettering
On Thu, 26.05.16 17:12, Mason Loring Bliss (ma...@blisses.org) wrote: > Traditionally I could edit scripts in /etc/acpi to accomplish things, but on > EL7 I'm seeing that some combination of upower and systemd/logind appear to > be the way to control responses to ACPI events. > > I want to have c

Re: [systemd-devel] ipv6 configuration error

2016-05-27 Thread Tom Gundersen
On Fri, May 27, 2016 at 5:11 PM, Michał Zegan wrote: > Hello, I have encountered a very interesting problem: I have a wired > ipv4 network configured via systemd-network, and an ipv6 sit tunnel. > The problem is it does not start. trying to restart systemd-networkd > gives the error like both loc

Re: [systemd-devel] How do I hook into ACPI events?

2016-05-27 Thread Mason Loring Bliss
On Fri, May 27, 2016 at 06:38:05PM +0200, Lennart Poettering wrote: > See: > > https://www.freedesktop.org/wiki/Software/systemd/inhibit/ Thank you! -- The creatures outside looked from pig to man, and from man to pig, and from pig to man again; but already it was impossible to say which was w

Re: [systemd-devel] shutdown delayed by failure to start a service

2016-05-27 Thread Lennart Poettering
On Thu, 26.05.16 11:29, Felix Miata (mrma...@earthlink.net) wrote: > Did this ever get fixed? IOW, sometimes a service will fail to start when a > system is started, or later, after a session of updating, a previously > operating service fails to restart, or a newly installed service fails to > st

Re: [systemd-devel] shutdown delayed by failure to start a service

2016-05-27 Thread Mantas Mikulėnas
On Fri, May 27, 2016 at 7:47 PM, Lennart Poettering wrote: > On Thu, 26.05.16 11:29, Felix Miata (mrma...@earthlink.net) wrote: > > > Did this ever get fixed? IOW, sometimes a service will fail to start > when a > > system is started, or later, after a session of updating, a previously > > operat

[systemd-devel] Am I getting/understanding certain bits on systemd/cgroups -- low-prio query

2016-05-27 Thread jsl6uy js16uy
I dig transient services/scopes I also like interacting with resource limits via systemctl set-property interface --easy to list resources that are available and set sans finding and catting on /sys/fs/cgroup/foo So... Basically I have a system up and running. See some processes I want to corral

Re: [systemd-devel] ipv6 configuration error

2016-05-27 Thread Michał Zegan
it is not large, is it: I will set up the tunnel and attach what you want. I have set up the tunnel. systemd-networkd configured it immediately when I issued ip tunnel add with parameters. here is ip addr output: 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1 link/loopback