[systemd-devel] systemd-networkd: How to configure network with environment variables?

2021-04-22 Thread Paul Menzel
Dear systemd folks, Due to historical reasons, in our environment we have a configuration file with the network device name and the to be assigned IP address: $ more /etc/local/mxhost.conf MX_NETDEV=net02 MX_IPADDR=141.14.18.X Then a custom service unit `network.service` [1] conf

Re: [systemd-devel] RFC: one more time: SCSI device identification

2021-04-22 Thread Martin K. Petersen
Martin, > I suppose 99.9% of users never bother with customizing the udev rules. Except for the other 99.9%, perhaps? :) We definitely have many users that tweak udev storage rules for a variety of reasons. Including being able to use RII for LUN naming purposes. > But we can actually combine

[systemd-devel] Alias for template/instance service unit

2021-04-22 Thread Hans Gruber
Hello, I am having problems with the aliases and "Alias=' directive related to the template service unit. According to https://www.freedesktop.org/software/systemd/man/systemd.unit.html > "A template instance may only be aliased by another template instance, and > the instance part must be ident

Re: [systemd-devel] Alias for template/instance service unit

2021-04-22 Thread Hans Gruber
Hello, Thank you for your really appreciated advice. I confirm that I misunderstood what "applies to all instances" means.So now seems clear. Thanks But there is something I don't understand. I have two templates.The second one which is a simple instance of a tail > /dev/ttyX under tail@.servi

Re: [systemd-devel] Is there a way to know inside of systemd if it's in a reboot state?

2021-04-22 Thread Lennart Poettering
On Mo, 19.04.21 20:19, Tia, Javier (javier@hpe.com) wrote: > Hi, > > Is there a way to know inside of systemd if it's in a reboot state? systemctl is-system-running Lennart -- Lennart Poettering, Berlin ___ systemd-devel mailing list systemd-devel

Re: [systemd-devel] Is there a way to know inside of systemd if it's in a reboot state?

2021-04-22 Thread Tia, Javier
I had to make a little change to systemctl to use a file as a flag when the system is rebooting. Likely, this a use case that most people would not be interested in. And it might exist a better way to do it. Anyway, this is the patch: diff --git a/src/basic/fs-util.h b/src/basic/fs-util.h index

Re: [systemd-devel] "Correct" way to obtain DHCP lease info?

2021-04-22 Thread Bruce A. Johnson
On 22/04/2021 16:14, Bruce A. Johnson wrote: I'm still trying to get an explanation of why having a valid DHCP address is not in itself good enough. Correction: I'm still trying to get an explanation from my requirements person :facepalm: Bruce A. Johnson | Firmware Engineer Blue Ridge Ne

Re: [systemd-devel] "Correct" way to obtain DHCP lease info?

2021-04-22 Thread Bruce A. Johnson
I'm still trying to get an explanation of why having a valid DHCP address is not in itself good enough. The only reason I've been able to see is that after the lease is issued, and before the time comes to refresh the lease, there could be a communication failure somewhere between the switch th

Re: [systemd-devel] Alias for template/instance service unit

2021-04-22 Thread Mantas Mikulėnas
On Thu, Apr 22, 2021 at 9:18 PM Hans Gruber wrote: > Hello, > > I am having problems with the aliases and "Alias=' directive related to > the template service unit. > > According to > https://www.freedesktop.org/software/systemd/man/systemd.unit.html > > > "A template instance may only be aliased

Re: [systemd-devel] RFC: one more time: SCSI device identification

2021-04-22 Thread Benjamin Marzinski
On Thu, Apr 22, 2021 at 09:07:15AM +, Martin Wilck wrote: > On Wed, 2021-04-21 at 22:46 -0400, Martin K. Petersen wrote: > > > > Martin, > > > > > Hm, it sounds intriguing, but it has issues in its own right. For > > > years to come, user space will have to probe whether these attribute > > >

Re: [systemd-devel] systemctl reboot get terminated by signal 15

2021-04-22 Thread Pengpeng Sun
Hi Lennart, After installed a signal handler for SIGTERM and reproduced the issue, got si_pid is 1 which is systemd. Also paste the stderr here: stderr: 'Bus n/a: changing state UNSET → OPENING Bus n/a: changing state OPENING → AUTHENTICATING Executing dbus call org.freedesktop.systemd1.Manager

Re: [systemd-devel] "Correct" way to obtain DHCP lease info?

2021-04-22 Thread Mantas Mikulėnas
On Thu, Apr 22, 2021 at 6:17 PM Bruce A. Johnson < bjohn...@blueridgenetworks.com> wrote: > Silvio, thanks for the suggestion. I'm not concerned with keeping the > lease forever; the system actually experiences a topology change as it's > switched from one network to another, and I can catch that

Re: [systemd-devel] "Correct" way to obtain DHCP lease info?

2021-04-22 Thread Bruce A. Johnson
Silvio, thanks for the suggestion. I'm not concerned with keeping the lease forever; the system actually experiences a topology change as it's switched from one network to another, and I can catch that from the DBus events that occur. The problem we're trying to solve is to contact some address

Re: [systemd-devel] RFC: one more time: SCSI device identification

2021-04-22 Thread Martin Wilck
On Wed, 2021-04-21 at 22:46 -0400, Martin K. Petersen wrote: > > Martin, > > > Hm, it sounds intriguing, but it has issues in its own right. For > > years to come, user space will have to probe whether these attribute > > exist, and fall back to the current ones ("wwid", "vpd_pg83") > > otherwise

Re: [systemd-devel] resolved: wrong address w/ cache off, wo/ querying DNS server

2021-04-22 Thread Lennart Poettering
On Do, 22.04.21 01:42, Dénes Türei (turei.de...@gmail.com) wrote: > Dear Systemd Developers, > > I got stuck with investigating an issue and I would be very grateful > for some advice. > Briefly, systemd-resolved keeps returning a wrong answer to a query, > despite the cache is disabled. The debug

Re: [systemd-devel] syscvall-filters killing CGI after update to Fedora 33

2021-04-22 Thread Lennart Poettering
On Mo, 19.04.21 18:24, Reindl Harald (h.rei...@thelounge.net) wrote: > after a long time using this SystemCallFilter perl-cgi with Fedora 33 get > killed - anyone an idea what changed that's obviously covered by the second > line > > SystemCallFilter=@system-service @network-io @privileged > Syste