[systemd-devel] No DHCP server is started with DHCPServer=yes

2020-05-06 Thread Francis Moreau
Hi, I'm running systemd v245 (in the host and in the containers) and I have 2 containers whose veth link is connected to a bridge. One container named "c1" uses "DHCPServer=yes" and is supposed to provide an ipv4 address to the second container "c2" but for some reasons it seems that no DHCP

Re: [systemd-devel] network-online.target time

2020-05-06 Thread Peter Morrow
On Wed, 2020-05-06 at 17:51 +0200, Lennart Poettering wrote: > On Mi, 06.05.20 15:50, Peter Morrow ( > peter.mor...@microsoft.com > ) wrote: > > > On Wed, 2020-05-06 at 17:39 +0200, Lennart Poettering wrote: > > > On Mi, 22.04.20 14:44, Peter Morrow ( > > > peter.mor...@microsoft.com > > > > > >

Re: [systemd-devel] network-online.target time

2020-05-06 Thread Peter Morrow
On Wed, 2020-05-06 at 17:39 +0200, Lennart Poettering wrote: > On Mi, 22.04.20 14:44, Peter Morrow ( > peter.mor...@microsoft.com > ) wrote: > > > Hi Folks, > > > > I'm trying to optimise our boot process and have started to look at > > the time it takes for the network to come up (a single

Re: [systemd-devel] Moving a service from one systemd slice to another..

2020-05-06 Thread Tomasz Torcz
On Wed, May 06, 2020 at 05:18:34PM +0200, Lennart Poettering wrote: > On Mo, 04.05.20 08:31, Tomasz Torcz (to...@pipebreaker.pl) wrote: > > > On Mon, May 04, 2020 at 11:52:37AM +0530, nitish nagesh wrote: > > > Hello, > > > > > >We have this odd want to move a daemon between different systemd

Re: [systemd-devel] Moving a service from one systemd slice to another..

2020-05-06 Thread Lennart Poettering
On Mi, 06.05.20 22:05, Tomasz Torcz (to...@pipebreaker.pl) wrote: > On Wed, May 06, 2020 at 05:18:34PM +0200, Lennart Poettering wrote: > > On Mo, 04.05.20 08:31, Tomasz Torcz (to...@pipebreaker.pl) wrote: > > > > > On Mon, May 04, 2020 at 11:52:37AM +0530, nitish nagesh wrote: > > > > Hello, > >

Re: [systemd-devel] No DHCP server is started with DHCPServer=yes

2020-05-06 Thread Lennart Poettering
On Mi, 06.05.20 23:43, Francis Moreau (francis.m...@gmail.com) wrote: > Hi, > > I'm running systemd v245 (in the host and in the containers) and I > have 2 containers whose veth link is connected to a bridge. > > One container named "c1" uses "DHCPServer=yes" and is supposed to > provide an ipv4

[systemd-devel] IdleAction=lock not working in ubuntu

2020-05-06 Thread Archana Polampalli
Hi All, My requirement is my system should get locked automatically when the system is idle for 5min. So for this I have configured /etc/system/logind.conf file as IdleAction = lock IdleActionSec=2min And I restarted systemd service with 'setemctl restart system-logind.service' and I kept my

Re: [systemd-devel] IdleAction=lock not working in ubuntu

2020-05-06 Thread Archana Polampalli
Linux-4.19.0-5-amd64 Debian-buster Systemd - systemd-241 Regards Archana From: systemd-devel On Behalf Of Archana Polampalli Sent: Wednesday, May 6, 2020 12:11 PM To: systemd-devel@lists.freedesktop.org Subject: [systemd-devel] IdleAction=lock not working in ubuntu Hi All, My requirement is

Re: [systemd-devel] IdleAction=lock not working in ubuntu

2020-05-06 Thread Lennart Poettering
On Mi, 06.05.20 06:40, Archana Polampalli (archana.c...@toshiba-tsip.com) wrote: > Hi All, > > My requirement is my system should get locked automatically when the system > is idle for 5min. > So for this I have configured /etc/system/logind.conf file as > IdleAction = lock > IdleActionSec=2min

Re: [systemd-devel] IdleAction=lock not working in ubuntu

2020-05-06 Thread Archana Polampalli
Thank you very much for the prompt reply I am using 'gnome' Desktop Environment Regards, Archana -Original Message- From: Lennart Poettering Sent: Wednesday, May 6, 2020 2:14 PM To: Archana Polampalli Cc: systemd-devel@lists.freedesktop.org Subject: Re: [systemd-devel]

Re: [systemd-devel] IdleAction=lock not working in ubuntu

2020-05-06 Thread Archana Polampalli
Hi Lennart , I have few more questions, 1.I have run $loginctl lock-session command in gnome DE,it is locking the session. and why it is not locking through logind.conf parameters. 2.As per my investigation on session locking, logind uses DBus to propagate the "Lock" event .we will need an

Re: [systemd-devel] Q: systemctl kill: "Invalid who argument 15862"

2020-05-06 Thread Paul Menzel
Dear Ulrich, Am 06.05.20 um 11:21 schrieb Ulrich Windl: I have a question for systemd-228-150.82.1.x86_64 (of SLES12 SP4): While developing a script for logrotate, I tested this command with the following result: # systemctl kill -s HUP --kill-who=15862 iotwatch@LOC1.service Failed to kill

[systemd-devel] Antw: [EXT] Re: Q: systemctl kill: "Invalid who argument 15862"

2020-05-06 Thread Ulrich Windl
>>> Reindl Harald schrieb am 06.05.2020 um 11:24 in Nachricht <11141_1588757087_5EB2825F_11141_72_1_3a082624-966b-a922-f8b9-ef0bb69c32f0@thelo nge.net>: > > Am 06.05.20 um 11:21 schrieb Ulrich Windl: >> # systemctl kill -s HUP --kill-who=15862 iotwatch@LOC1.service >> >> Did I misinterpret

[systemd-devel] Q: systemctl kill: "Invalid who argument 15862"

2020-05-06 Thread Ulrich Windl
Hi! I have a question for systemd-228-150.82.1.x86_64 (of SLES12 SP4): While developing a script for logrotate, I tested this command with the following result: # systemctl kill -s HUP --kill-who=15862 iotwatch@LOC1.service Failed to kill unit iotwatch@LOC1.service: Invalid who argument 15862

Re: [systemd-devel] Q: systemctl kill: "Invalid who argument 15862"

2020-05-06 Thread Silvio Knizek
Am Mittwoch, den 06.05.2020, 11:21 +0200 schrieb Ulrich Windl: > Hi! > > I have a question for systemd-228-150.82.1.x86_64 (of SLES12 SP4): > While developing a script for logrotate, I tested this command with the > following result: > > # systemctl kill -s HUP --kill-who=15862

Re: [systemd-devel] systemd-hostnamed/hostnamectl and transient hostname change

2020-05-06 Thread Thomas HUMMEL
On 5/4/20 3:57 PM, Thomas HUMMEL wrote: but hostnamectl --static set-hostname 'static' where current static hostname is already 'static' then transient hostname is never set. What do you think about it ? Hello, am I wrong on this one ? Thanks for your help -- Thomas HUMMEL

[systemd-devel] Antw: [EXT] Re: Q: systemctl kill: "Invalid who argument 15862"

2020-05-06 Thread Ulrich Windl
>>> Paul Menzel schrieb am 06.05.2020 um 11:26 in Nachricht <12189_1588757179_5EB282BB_12189_122_1_f3c28f74-4675-ff7b-edd2-66f52e12831f@molg n.mpg.de>: > Dear Ulrich, > > > Am 06.05.20 um 11:21 schrieb Ulrich Windl: > >> I have a question for systemd-228-150.82.1.x86_64 (of SLES12 SP4): >>

[systemd-devel] Requested transaction contradicts existing jobs: start is destructive

2020-05-06 Thread Mark Bannister
> On Tue, 5 May 2020 at 16:27, Mark Bannister wrote: > > Perhaps I'm missing something or oversimplifying, but I tried to > > reproduce the problem as follows: I created a script that ignores INT, > > TERM and HUP and then loops indefinitely writing the time every second > > to a log file. I

[systemd-devel] Udev Regex

2020-05-06 Thread Boyce, Kevin P [US] (AS)
Good Morning List, Does anyone know how complicated of a regular expression can be utilized in a udev rule? For instance I have a system with a lot of drives (sda through z aren't enough) and I want to write a rule that will match the physical block devices for one rule and then a separate

Re: [systemd-devel] IdleAction=lock not working in ubuntu

2020-05-06 Thread Archana Polampalli
4.IdleAction=lock does it work in tty console . -Original Message- From: Archana Polampalli Sent: Wednesday, May 6, 2020 2:52 PM To: 'Archana Polampalli' ; Lennart Poettering Cc: systemd-devel@lists.freedesktop.org Subject: RE: [systemd-devel] IdleAction=lock not working in ubuntu Hi

Re: [systemd-devel] os-release: extension to expose host's version variables to containers

2020-05-06 Thread Lennart Poettering
On Do, 16.04.20 14:03, Luca Boccassi (luca.bocca...@microsoft.com) wrote: > Hi, > > We find ourselves in a situation where application running > containerized (specifically as portable services, although this issue > is general) need to either find information about the host, or alter > their

[systemd-devel] Antw: Re: EXT :Antw: [EXT] Udev Regex

2020-05-06 Thread Ulrich Windl
>>> Lennart Poettering schrieb am 06.05.2020 um 15:43 in Nachricht <20200506134333.GC89018@gardel-login>: > On Mi, 06.05.20 13:03, Boyce, Kevin P [US] (AS) (kevin.bo...@ngc.com) wrote: > >> Ulrich, >> >> I just noticed that too. This seems rather restrictive given that one could > have a

Re: [systemd-devel] Udev Regex

2020-05-06 Thread Andrei Borzenkov
On Wed, May 6, 2020 at 3:23 PM Boyce, Kevin P [US] (AS) wrote: > > Good Morning List, > > > > Does anyone know how complicated of a regular expression can be utilized in a > udev rule? > I would ask udev manual page :) > > > For instance I have a system with a lot of drives (sda through z

Re: [systemd-devel] EXT :Antw: [EXT] Udev Regex

2020-05-06 Thread Andrei Borzenkov
On Wed, May 6, 2020 at 4:43 PM Lennart Poettering wrote: > > On Mi, 06.05.20 13:03, Boyce, Kevin P [US] (AS) (kevin.bo...@ngc.com) wrote: > > > Ulrich, > > > > I just noticed that too. This seems rather restrictive given that one > > could have a system with many drives, and with GPT it is not

Re: [systemd-devel] systemd.network vs. ifupdown vs. netplan?

2020-05-06 Thread Ansgar
John Ioannidis writes: > Is there a document somewhere that details what the > interactions/conflicts/etc are between systemd.{link,netdev,network} and > the ifupdown mechanisms? I have read the manual pages, of course, but I > feel I'm missing something fundamental. I finally got around to moving

Re: [systemd-devel] Udev Regex

2020-05-06 Thread Lennart Poettering
On Mi, 06.05.20 12:15, Boyce, Kevin P [US] (AS) (kevin.bo...@ngc.com) wrote: > Good Morning List, > > Does anyone know how complicated of a regular expression can be > utilized in a udev rule? udev supports shell-style globbing for matching, but no regular expressions. The man page says that

Re: [systemd-devel] EXT :Antw: [EXT] Udev Regex

2020-05-06 Thread Boyce, Kevin P [US] (AS)
Ulrich, I just noticed that too. This seems rather restrictive given that one could have a system with many drives, and with GPT it is not unreasonable to have a large number of partitions as well. There should be a way in udev to write rules that can distinguish between /dev/sda and

Re: [systemd-devel] sd_bus_add_match callback

2020-05-06 Thread Lennart Poettering
On Fr, 10.04.20 12:06, David J (ema...@icloud.com) wrote: > Giacinto, > Thanks for further explaining my email. > > Lennart, > Thank you for your feedback. What I am doing is writing an sd-bus > interface and a client code, which is only interested in specific > signal information. So the

Re: [systemd-devel] systemd service fails to start rhel7.8

2020-05-06 Thread Lennart Poettering
On Di, 05.05.20 08:48, Aviram, Nimrod (navi...@bottomline.com) wrote: > HI, > > I've been using the following service to control our catalane server for the > past few years now. > After upgrading OS to RHEL 7.8 , the service fails to start. > I'm usually creating a basic user (cfrm) to run

Re: [systemd-devel] EXT :Re: Antw: [EXT] Udev Regex

2020-05-06 Thread Boyce, Kevin P [US] (AS)
So therefore udev should be able to make use of extended globbing...? -Original Message- From: Andrei Borzenkov Sent: Wednesday, May 06, 2020 9:49 AM To: Lennart Poettering Cc: Boyce, Kevin P [US] (AS) ; systemd-devel@lists.freedesktop.org Subject: EXT :Re: [systemd-devel] Antw: [EXT]

[systemd-devel] Antw: [EXT] Udev Regex

2020-05-06 Thread Ulrich Windl
>>> "Boyce, Kevin P [US] (AS)" schrieb am 06.05.2020 um 14:15 in Nachricht <16534_1588767787_5EB2AC2A_16534_16_1_d2c2e1aff05740ea9d1ea3e1325511b2@XCGVAG30. orthgrum.com>: > Good Morning List, > > Does anyone know how complicated of a regular expression can be utilized in > a udev rule? > > For

Re: [systemd-devel] os-release: extension to expose host's version variables to containers

2020-05-06 Thread Lennart Poettering
On Do, 16.04.20 16:56, Simon McVittie (s...@collabora.com) wrote: > On Thu, 16 Apr 2020 at 14:03:43 +, Luca Boccassi wrote: > > But I found at least one other use case where this is needed, and the > > solution there is to add a new directory /host/ which replicates part > > of the host's

Re: [systemd-devel] EXT :Antw: [EXT] Udev Regex

2020-05-06 Thread Lennart Poettering
On Mi, 06.05.20 13:03, Boyce, Kevin P [US] (AS) (kevin.bo...@ngc.com) wrote: > Ulrich, > > I just noticed that too. This seems rather restrictive given that one could > have a system with many drives, and with GPT it is not unreasonable to have a > large number of partitions as well. > > There

Re: [systemd-devel] Moving a service from one systemd slice to another..

2020-05-06 Thread Lennart Poettering
On Mo, 04.05.20 08:31, Tomasz Torcz (to...@pipebreaker.pl) wrote: > On Mon, May 04, 2020 at 11:52:37AM +0530, nitish nagesh wrote: > > Hello, > > > >We have this odd want to move a daemon between different systemd slices. > > Not sure if that's even a valid thing to do, but here is the

Re: [systemd-devel] network-online.target time

2020-05-06 Thread Lennart Poettering
On Mi, 22.04.20 14:44, Peter Morrow (peter.mor...@microsoft.com) wrote: > Hi Folks, > > I'm trying to optimise our boot process and have started to look at > the time it takes for the network to come up (a single interface to be > routable) when using systemd-networkd: > > Can anyone offer any

Re: [systemd-devel] How to figure out what's causing systemd to start printing messages partway through boot?

2020-05-06 Thread McKay, Sean
Hi Lennart, I've had debug logging on for a while (it's mentioned in my first email, but I concede that was rather long). Unfortunately, I will admit to not being particularly familiar with dbus or the signals I should be looking for. Is there a direction you could point me in (either

Re: [systemd-devel] os-release: extension to expose host's version variables to containers

2020-05-06 Thread Simon McVittie
On Wed, 06 May 2020 at 16:39:39 +0200, Lennart Poettering wrote: > On Do, 16.04.20 16:56, Simon McVittie (s...@collabora.com) wrote: > > /run/host seems like a reasonable convention to encourage for > > container/host systems that want this, since it doesn't require > > inventing a new top-level

Re: [systemd-devel] network-online.target time

2020-05-06 Thread Lennart Poettering
On Mi, 06.05.20 15:50, Peter Morrow (peter.mor...@microsoft.com) wrote: > On Wed, 2020-05-06 at 17:39 +0200, Lennart Poettering wrote: > > On Mi, 22.04.20 14:44, Peter Morrow ( > > peter.mor...@microsoft.com > > ) wrote: > > > > > Hi Folks, > > > > > > I'm trying to optimise our boot process and

Re: [systemd-devel] A way to debug machine shutdown

2020-05-06 Thread Lennart Poettering
On So, 26.04.20 19:08, Dark Penguin (darkpeng...@yandex.com) wrote: > Very often I have encountered one problem: during shutdown, systemd has > to wait for something. Of course, it is probably different things every > time, and it is probably not systemd's fault, at least some of the cases. > >

Re: [systemd-devel] why is systemd-remount-fs.service needed in stage-2?

2020-05-06 Thread Lennart Poettering
On So, 03.05.20 23:03, Arian Van Putten (ar...@wire.com) wrote: > Hey list, > > I'm in the process of experimenting with a systemd-based initrd. > However I have two questions concerning the boot process that came up > whilst reading the documentation. > > If I understand "man 7 bootup" correctly

Re: [systemd-devel] Moving a service from one systemd slice to another..

2020-05-06 Thread Lennart Poettering
On Mo, 04.05.20 11:52, nitish nagesh (nagesh.nit...@gmail.com) wrote: > Hello, > >We have this odd want to move a daemon between different systemd slices. > Not sure if that's even a valid thing to do, but here is the > requirement. The Linux kernel gets a bit confused with accounting if you

Re: [systemd-devel] Requested transaction contradicts existing jobs: start is destructive

2020-05-06 Thread Kumar Kartikeya Dwivedi
On Wed, 6 May 2020 at 15:58, Mark Bannister wrote: > > I repeated the exact same test with a different user account, one > set-up specifically for this test and nothing else, so there was only > one SSH session. But 'systemctl list-jobs' always reported 'No jobs > running' even after the SSH

Re: [systemd-devel] How to figure out what's causing systemd to start printing messages partway through boot?

2020-05-06 Thread Lennart Poettering
On Mi, 29.04.20 23:26, McKay, Sean (sean.mc...@hpe.com) wrote: > Do you have any guidance on what I should look at to determine what > is causing the show_status variable in systemd to get flipped to > true without any apparent unit failures? Is there an easy way to > find that information?