Re: [systemd-devel] Examples to distinguish Before=/After= and Wants=/Requires=/BindsTo=

2021-09-15 Thread Andrei Borzenkov
On 15.09.2021 18:15, Manuel Wagesreither wrote: > Hello all, > > I'm onboarding some collegues who don't have much experience with systemd. > One thing I would like to focus on is the difference between Before=/After= > and Wants=/Requires=/BindsTo in systemd units. > > I think it would get imm

Re: [systemd-devel] What are the use cases of journalctl --flush ?

2021-09-22 Thread Andrei Borzenkov
On Wed, Sep 22, 2021 at 9:27 AM wrote: > > Now that the operation of flush can be done automatically when you switch > from Storage=volatile to #Storage=volatile, why do we still need journalctl > --flush? > To switch from volatile storage to persistent storage on boot as explained in the man

Re: [systemd-devel] PIDFile creation logic

2021-10-18 Thread Andrei Borzenkov
On 18.10.2021 23:08, Silvio Knizek wrote: > Am Montag, dem 18.10.2021 um 12:43 -0700 schrieb Kenneth Porter: >> I just installed the new-to-EPEL ndppd service and am seeing this in my log: >> >> Oct 17 21:10:08 saruman systemd: Can't open PID file >> /var/run/ndppd/ndppd.pid (yet?) after start: No

Re: [systemd-devel] systemd --user fails to start a user service at the first time

2021-10-28 Thread Andrei Borzenkov
On 29.10.2021 04:54, Han wrote: > Hi, > > I'm a newbie to systemd. I encountered a strange problem when using > systemd user > service in Debian 10 (hardware: Raspberry Pi 4), systemd version 241. > > I posted this question on stackoverflow but didn't get answers yet. Hence > trying to ask here.

Re: [systemd-devel] run only a single service at a time

2021-10-28 Thread Andrei Borzenkov
On 28.10.2021 16:04, Olaf Hering wrote: > There is A.timer and its A.service, and B.timer and B.service. > Both A and B do not know about each other per default. > Both timers fire in their own cadence. > Both services have their unpredictable time until they finish. > So it may happen that A.servi

Re: [systemd-devel] systemd --user fails to start a user service at the first time

2021-10-29 Thread Andrei Borzenkov
On 29.10.2021 19:24, Han wrote: > I have a follow-up question inline. Thanks. > > On Thu, Oct 28, 2021 at 10:47 PM Han wrote: > >> >> On Thu, Oct 28, 2021 at 10:25 PM Andrei Borzenkov >> wrote: >> >>> On 29.10.2021 04:54, Han wrote: >>>&g

Re: [systemd-devel] Systemd setup DSA interfaces in port mode and bond them together?

2021-11-17 Thread Andrei Borzenkov
On 18.11.2021 03:20, Brian Hutchinson wrote: > Yet another update, I was able to get it working .. but feel like it is a > hack so comments welcome ... see below: > > On Wed, Nov 17, 2021 at 12:26 AM Brian Hutchinson > wrote: > >> Update below >> >> On Tue, Nov 16, 2021 at 2:27 PM Brian Hutchins

Re: [systemd-devel] Ordering services issue. Trying to start ptp4l in bonding setup fails as bonding appears to take a while.

2021-12-01 Thread Andrei Borzenkov
On 01.12.2021 17:20, Brian Hutchinson wrote: > Hi, > > I'm on embedded imx8 mm platform and trying to order services such that > ptp4l (LinuxPTP) is started after a bond is created between two DSA network > interfaces on my Microchip Ethernet Switch. > > No matter what I try with BindsTo, Wants=,

Re: [systemd-devel] How does udev determine onboard interface names

2021-12-02 Thread Andrei Borzenkov
On 02.12.2021 23:39, Ian Pilcher wrote: > I.e., how does it determine that a particular interface is an on-board > interface, and how does it determine the "number" of such an interface? > > Thanks! > It is looking at sysfs attributes (acpi_index, index and some others). Details are in src/udev/

Re: [systemd-devel] services stopping order during shutdown

2021-12-07 Thread Andrei Borzenkov
On 08.12.2021 08:35, Prashantkumar dhotre wrote: > Hi, > Is there a batching of service stops by systemd during shutdown. > In journal logs, I see a batch of 40 odd 'Stopping' messages and then the > next batch is seen after few seconds (4-6 seconds) > Is this by design ? > I am looking for a faste

Re: [systemd-devel] After= and Wants= doesn't seem to have an effect

2021-12-20 Thread Andrei Borzenkov
On 20.12.2021 15:06, Christopher Wong wrote: > # /etc/systemd/system/iris-detection.service > After=temperature-controller.service > > # /usr/lib/systemd/system/temperature-controller.service > After=iris-detection.service This is loop and systemd is free to break it by ignoring some dependency.

Re: [systemd-devel] After= and Wants= doesn't seem to have an effect

2021-12-20 Thread Andrei Borzenkov
m). Running with debig log level may give some more hints. > > Best Regards, > > Christopher Wong > > ________ > From: systemd-devel on behalf > of Andrei Borzenkov > Sent: Monday, December 20, 2021 1:27:42 PM > To: systemd-devel@lists.fre

Re: [systemd-devel] eth2: Failed to rename network interface 6 from 'eth2' to 'eno1': File exists

2022-01-04 Thread Andrei Borzenkov
On Tue, Jan 4, 2022 at 4:53 PM Harald Dunkel wrote: > > Hi folks, > > after the upgrade from Buster to Bullseye (including the migration from > sysv init to systemd) the network interface names were messed up on > several hosts. Apparently udev stumbles over a naming conflict: > > # journalctl -b

Re: [systemd-devel] Have I got circular dependencies?

2022-01-23 Thread Andrei Borzenkov
On 23.01.2022 19:42, Wols Lists wrote: > This is probably a classic "need a clue" problem ... my system has > suddenly stopped booting properly, and I guess it's a problem with my > custom systemd service. > > Basically, I've configured my raid device on top of dm-integrity, so > that needs to

Re: [systemd-devel] Launching script that needs network before suspend

2022-01-24 Thread Andrei Borzenkov
On Mon, Jan 24, 2022 at 1:14 AM Tomáš Hnyk wrote: > > Hello, > I have my computer hooked up to an AVR that runs my home cinema and ideally I > would like the computer to turn off the AVR when I turn it off or suspend it. > The only way to do this is over network and I wrote a simple script that

Re: [systemd-devel] Launching script that needs network before suspend

2022-01-24 Thread Andrei Borzenkov
On 24.01.2022 17:37, Tomáš Hnyk wrote: > > > On Monday 24. January 2022, 13:50:48 (+01:00), Andrei Borzenkov wrote: > I posted it in response to the list and you sent personal reply. Please use reply to all. >> On Mon, Jan 24, 2022 at 1:14 AM Tomáš Hnyk wrote: >>&g

Re: [systemd-devel] How to find out the processes systemd-shutdown is waiting for?

2022-03-08 Thread Andrei Borzenkov
On 08.03.2022 18:20, Manuel Wagesreither wrote: > Hi all, > > Am Do, 3. Mär 2022, um 19:02, schrieb Lennart Poettering: >> On Mi, 02.03.22 17:50, Lennart Poettering (lenn...@poettering.net) wrote: >> >>> That said, we could certainly show both the comm field and the PID of >>> the offending proces

Re: [systemd-devel] making firewalld an early boot service

2022-03-08 Thread Andrei Borzenkov
On 09.03.2022 00:59, Michael Biebl wrote: > Hi, > > I need help with firewalld issue, specifically > https://github.com/firewalld/firewalld/issues/414 > > the TLDR: both firewalld.service and cloud-init-local.service hook > into network-pre.target and have a Before=network-pre.target ordering. >

Re: [systemd-devel] making firewalld an early boot service

2022-03-09 Thread Andrei Borzenkov
On Wed, Mar 9, 2022 at 10:18 AM Michael Biebl wrote: > > Am Mi., 9. März 2022 um 06:49 Uhr schrieb Andrei Borzenkov > : > > > > On 09.03.2022 00:59, Michael Biebl wrote: > > > Hi, > > > > > > I need help with firewalld issue, specifically > &g

Re: [systemd-devel] Q: Difference between AssertPathExists and ConditionPathExists?

2022-03-17 Thread Andrei Borzenkov
On Thu, Mar 17, 2022 at 12:32 PM Ulrich Windl wrote: > > Hi! > > When reading the manual page systemd.unit(5), I'm not quite sure what the > difference between AssertPathExists and ConditionPathExists is: > > (Condition) > If the specified absolute path name does not exist, the condition will fai

Re: [systemd-devel] Antw: [EXT] Re: Q: Difference between AssertPathExists and ConditionPathExists?

2022-03-17 Thread Andrei Borzenkov
On 17.03.2022 14:15, Ulrich Windl wrote: >>>> Andrei Borzenkov schrieb am 17.03.2022 um 12:08 in > Nachricht > : >> On Thu, Mar 17, 2022 at 12:32 PM Ulrich Windl >> wrote: >>> >>> Hi! >>> >>> When reading the manual page s

Re: [systemd-devel] Starting one service when another one starts

2022-04-08 Thread Andrei Borzenkov
On 08.04.2022 14:54, Nick Howitt wrote: > Hi, > I apologise if this is not the right place for user help. If it is not, > please point me to the best place. > > I am trying to start a service (clearshare-scheduler) when another > service (siad) starts. Clearshare-scheduler is an odd service. Whe

Re: [systemd-devel] Starting one service when another one starts

2022-04-08 Thread Andrei Borzenkov
On 08.04.2022 23:35, Nick Howitt wrote: > Sorry, for the delay. Big internet outage. > > On 08/04/2022 15:15, Andrei Borzenkov wrote: >> >> On 08.04.2022 14:54, Nick Howitt wrote: >>> Hi, >>> I apologise if this is not the right place for user help. If it

Re: [systemd-devel] Splitting sd-boot from systemd/bootctl for enabling sd-boot in Fedora

2022-04-29 Thread Andrei Borzenkov
On 28.04.2022 10:54, Lennart Poettering wrote: > >> * systemd-boot is an additional bootloader, rather than replacing >> an existing one, thus increasing the attack surface. > > Hmm, what? "additional bootloader"? Are they suggesting you use grub > to start sd-boot? I mean, you certainly could

Re: [systemd-devel] systemd tries to terminate a process that seems to have exited

2022-05-04 Thread Andrei Borzenkov
On 05.05.2022 04:41, Yuri Kanivetsky wrote: > Hi, > > This might be not a systemd issue. But the behavior is weird, and I'm not > sure. > > I'm trying to run GNOME in a docker container. And gnome-keyring fails to > start: > > https://gist.github.com/x-yuri/c3c715ea6355633de4546ae957a66410 >

Re: [systemd-devel] systemd tries to terminate a process that seems to have exited

2022-05-09 Thread Andrei Borzenkov
tate. > > More info here: > > https://gist.github.com/x-yuri/b12e8178a621372a4aa62c60693af37b#file-b-journal-gnome-keyring-gist-md > > Do you know any reason a process can remain alive after exit() or > return from main()? Any threads started by PAM or anything > dbus-rel

Re: [systemd-devel] Custom options and passing options via command line.

2022-05-10 Thread Andrei Borzenkov
On 08.05.2022 20:19, Kamil Jońca wrote: > I have question about custom options in network interface definitions > and passing it via command line. > In currend Debian tools > > (https://manpages.debian.org/buster/ifupdown/interfaces.5.en.html) > there is a possibility to define custom option and p

Re: [systemd-devel] MaxRetentionSec does not delete entries older than the specified time

2022-05-29 Thread Andrei Borzenkov
On 29.05.2022 12:04, baba wrote: > In my /etc/systemd/journald.conf, I have: > Storage=persistent > MaxRetentionSec=3day > > And it doesn't delete entries older that 3 days: > Retention does not delete *entries*. It deletes archived journal files. ... > > In this case is the journal daemon au

Re: [systemd-devel] Antw: Re: Antw: [EXT] Re: Q: Start network in chroot?

2022-06-13 Thread Andrei Borzenkov
On 14.06.2022 08:57, Ulrich Windl wrote: Colin Guthrie schrieb am 13.06.2022 um 16:34 in > Nachricht : > >> Ulrich Windl wrote on 13/06/2022 14:42: >> Colin Guthrie schrieb am 13.06.2022 um 14:58 in >>> Nachricht : Ulrich Windl wrote on 13/06/2022 09:09: > Hi! > > Two q

Re: [systemd-devel] Antw: Re: Antw: [EXT] Re: Q: Start network in chroot?

2022-06-14 Thread Andrei Borzenkov
On Tue, Jun 14, 2022 at 10:57 AM Wols Lists wrote: > > On 14/06/2022 06:57, Ulrich Windl wrote: > >> So you're not running an init system but you want the (not-running) init > >> system to run something for you? > > > I don't understand: > > The rescue system I'm using (SLES 14 SP3) uses systemd,

Re: [systemd-devel] Antw: Re: Antw: Re: Antw: [EXT] Re: Q: Start network in chroot?

2022-06-14 Thread Andrei Borzenkov
On Tue, Jun 14, 2022 at 11:19 AM Ulrich Windl wrote: > > OK, the problem seems to be that systemctl does not "pass" the units to > systemd, but systemd "ate" (and digested) them all before. > And what if these units need binaries not available in the rescue system, configuration files that are d

[systemd-devel] Running actual systemd-based distribution image in systemd-nspawn

2022-06-15 Thread Andrei Borzenkov
I tried it (loop mounting qemu image): systemd-nspawn -D ./hd0 -b and it failed miserably with "Timeout waiting for device dev-disk-by...". Which is not surprising as there are no device units inside of container (it stops in single user allowing me to use sysctl -t device). Is it supposed to wo

Re: [systemd-devel] Running actual systemd-based distribution image in systemd-nspawn

2022-06-17 Thread Andrei Borzenkov
On 16.06.2022 11:27, Colin Guthrie wrote: > Andrei Borzenkov wrote on 15/06/2022 16:56: >> I tried it (loop mounting qemu image): >> >> systemd-nspawn -D ./hd0 -b >> >> and it failed miserably with "Timeout waiting for device >> dev-disk-by...". Whi

Re: [systemd-devel] Prefix delegation and IPv6 subnetting

2022-07-07 Thread Andrei Borzenkov
On 07.07.2022 18:25, Bent Bagger wrote: > > The prefix delegation problem starts with the interactions between net0 > and net2. Net0 is delegated a /56 prefix from the main router (which > runs radvd and dhcpd6, not networkd, for historical reasons). I want > net2 to delegate a /60 subnet to ne

Re: [systemd-devel] Prefix delegation and IPv6 subnetting

2022-07-09 Thread Andrei Borzenkov
On 09.07.2022 18:48, Bent Bagger wrote: > Thank you for the comments. They are most helpful. > > Contrary to somebody’s belief sub-netting is indeed possible using > systemd in version 251.1. > If you mean me, I never said that subnetting is not possible. I said that sub-delegating is not possi

Re: [systemd-devel] What is the shutdown sequence with systemd and dracut?

2022-08-08 Thread Andrei Borzenkov
On 08.08.2022 15:24, Patrick Schleizer wrote: > Hi! > > This is what I think but please correct me if I am wrong. > > 1. systemd runs systemd units for systemd shutdown.target > > 2. /lib/systemd/system-shutdown (shutdown.c) runs > > 3. /lib/systemd/system-shutdown executes /run/initramfs/shutd

Re: [systemd-devel] Ordering units and targets with devices

2022-08-24 Thread Andrei Borzenkov
On 17.08.2022 16:23, Michael Cassaniti wrote: > Hi, > > I'm trying to order my units and targets during early boot so that: > 1. A symlink to the specific FIDO2 token I'm using gets created. I > already have a udev rule in place for this and it successfully creates > the symlink under /dev. Beca

Re: [systemd-devel] The best way to execute kexec via dbus

2022-08-25 Thread Andrei Borzenkov
On 26.08.2022 03:59, Tomáš Hnyk wrote: > Hello,I am trying to be able to reboot with kexec from a GUI (I am > modifying this: https://github.com/varlesh/org.kde.plasma.compact-shutdown > ). As far as I can tell, I need to use qdbus. Via command line, I can > successfully reboot with kexec with:

Re: [systemd-devel] The best way to execute kexec via dbus

2022-08-26 Thread Andrei Borzenkov
On 26.08.2022 12:29, Tomáš Hnyk wrote: > On Friday 26. August 2022, 06:55:15 (+02:00), Andrei Borzenkov wrote: > >> On 26.08.2022 03:59, Tomáš Hnyk wrote: >>> Hello,I am trying to be able to reboot with kexec from a GUI (I am >>> modifying this: https://github.com/

Re: [systemd-devel] The best way to execute kexec via dbus

2022-08-26 Thread Andrei Borzenkov
On 26.08.2022 13:54, Tomáš Hnyk wrote: > > > >> > > > Indeed, it must have been the late night, they are the same. However, > the following are not the same even the man page says they are: > > > > > > sudo systemctl kexec # results in kexec > > > > > > full log here: https://hastebin.com/g

Re: [systemd-devel] The best way to execute kexec via dbus

2022-08-26 Thread Andrei Borzenkov
Please answer to the list, not me personally. You do it second time. On 26.08.2022 17:12, Tomáš Hnyk wrote: > On Friday 26. August 2022, 15:02:54 (+02:00), Andrei Borzenkov wrote: > >> On 26.08.2022 13:54, Tomáš Hnyk wrote: >>> >>>>>> >>>>>

Re: [systemd-devel] Problem: Renaming the USB network interface makes SYSTEMD_WANTS not working

2022-08-29 Thread Andrei Borzenkov
On 28.08.2022 23:35, Charles wrote: > Hello, > > Adding NAME="mywifi" to an udev rule causes the SYSTEMD_WANTS service to not > be executed. Removing NAME="mywifi" and the service is executed. How come? > ​ > >> /etc/udev/rules.d/10-network.rules >> SUBSYSTEM=="net", ACTION=="add", ATTR{address}

Re: [systemd-devel] Problem: Renaming the USB network interface makes SYSTEMD_WANTS not working

2022-08-29 Thread Andrei Borzenkov
egant. It should be triggered by the “mywifi” device and not a parent > device. > > Another solution is: > >> SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="...", NAME="mywifi" >> SUBSYSTEM=="net", ACTION=="move",

Re: [systemd-devel] Antw: Re: Re: [EXT] Re: Q: Querying units for "what provides" a target

2022-09-09 Thread Andrei Borzenkov
On Fri, Sep 9, 2022 at 2:13 PM Ulrich Windl wrote: ... > > > > If you are interested in services that pull in e.g. time-sync.target > > via Wants (or Requires) and order themselves before the target, you > > can use something like > > $ systemctl show time-sync.target -p WantedBy -p RequiredBy -p

Re: [systemd-devel] Antw: Re: Re: [EXT] Re: Q: Querying units for "what provides" a target

2022-09-09 Thread Andrei Borzenkov
On Fri, Sep 9, 2022 at 4:12 PM Ulrich Windl wrote: > Thanks for the explanation! For me part of the problem is: Where is "pull in" > defined? ;-) In an English dictionary? > The phrase is used for Wants, but also for Requires. So is "pull in " a > synonym for "wants or requires"? Yes. "Pull

Re: [systemd-devel] Antw: Re: Re: [EXT] Re: Q: Querying units for "what provides" a target

2022-09-09 Thread Andrei Borzenkov
On 09.09.2022 16:19, Andrei Borzenkov wrote: > "Requires" means - submit additional start jobs for the listed units > and wait until these start jobs are completed before processing the > start job for the unit itself. Sorry, that was wrong. That is what everyone assumes it do

Re: [systemd-devel] boot-complete.target dependencies issue

2022-09-16 Thread Andrei Borzenkov
On Fri, Sep 16, 2022 at 11:11 AM Antonio Murdaca wrote: > > Hi, following > https://systemd.io/AUTOMATIC_BOOT_ASSESSMENT/#how-to-adapt-this-scheme-to-other-setups > I've been experimenting on a fedora system with > systemd-boot-check-no-failures.service and the ability to have services run > "

Re: [systemd-devel] boot-complete.target dependencies issue

2022-09-17 Thread Andrei Borzenkov
On 17.09.2022 19:44, Lennart Poettering wrote: > > So, my recommended fix: add After=multi-user.target to your > service. Note that systemd handling of .wants/ works like this: > > 1. add Wants= type dep > 2. if no After=/Before= dep is set, then also add Before= > That's not what manual page s

Re: [systemd-devel] Can /usr/lib/systemd/user/sockets.target.wants be used to autoenable a socket by a vendor package?

2022-09-17 Thread Andrei Borzenkov
On 18.09.2022 09:05, Yuri Kanivetsky wrote: >> No, everything linked to a .wants/ directory immediately becomes a >> Wants= dep of and is therefore "enabled", it doesn't matter whether >> that .wants/ is in /etc or /usr/lib or /run. > > To confirm this, I created the following files: > > $ cat

Re: [systemd-devel] Can /usr/lib/systemd/user/sockets.target.wants be used to autoenable a socket by a vendor package?

2022-09-20 Thread Andrei Borzenkov
On Tue, Sep 20, 2022 at 10:42 AM Barry wrote: > > Enabled does mean that it will or will not run. > It means that it is wanted by the default target. > No. It means that it is wanted by whatever units are listed in [Install] section (actually, it is "enabled" even if only aliases are created, so

Re: [systemd-devel] "Failed to connect to bus: No such file or directory" when running systemd --user commands with runuser as root

2022-09-20 Thread Andrei Borzenkov
On 20.09.2022 20:29, Dave Houser wrote: > Figured out why it was failing. I updated my post here --> > https://askubuntu.com/questions/1430191/ubuntu-20-04-not-allowing-runuser-to-manage-systemd-user-services-failed-to/1430379#1430379 > Problem was Ubuntu default user .bashrc had the following case

Re: [systemd-devel] Q: handling generator-like dependency: target won't start on boot

2022-09-28 Thread Andrei Borzenkov
On 28.09.2022 09:25, Ulrich Windl wrote: > Hi! > > I'm trying to establish a mechanism that uses a generator-like mechanism as > described below. Unfortunately it starts when triggering the target manually, > but it never starts on system boot. I could need some advice how to make it > work. >

Re: [systemd-devel] [EXT] Re: Q: handling generator-like dependency: target won't start on boot

2022-09-29 Thread Andrei Borzenkov
On Thu, Sep 29, 2022 at 9:41 AM Ulrich Windl wrote: > > >>> Andrei Borzenkov schrieb am 28.09.2022 um 20:34 in > Nachricht : > > On 28.09.2022 09:25, Ulrich Windl wrote: > >> Hi! > >> > >> I'm trying to establish a mechanism tha

Re: [systemd-devel] [EXT] Re: Q: handling generator-like dependency: target won't start on boot

2022-09-29 Thread Andrei Borzenkov
On Thu, Sep 29, 2022 at 4:01 PM Ulrich Windl wrote: > > >>> Andrei Borzenkov schrieb am 29.09.2022 um 13:57 in > Nachricht > : > ... > >> I don't quite understand what an "initial transaction" is, > > > > The set of (start) jobs starti

Re: [systemd-devel] Attaching virtual session (e.g. SSH) to seat

2022-10-01 Thread Andrei Borzenkov
On 01.10.2022 15:46, Nils Kattenbeck wrote: > I am logging in on a PC using SSH and need to access some peripherals > which are attached to seat0. > loginctl shows that my session is not attached to any seat: > > SESSION UID USER SEAT TTY > 50 1000 septatrix pts/0 > > The devices

Re: [systemd-devel] Service is started multiple times during initrd

2022-10-04 Thread Andrei Borzenkov
On 04.10.2022 22:14, cd wrote: ... > add_symlink > "/usr/lib/systemd/system/initrd-root-fs.target.wants/lvm-autosnap-initrd.service" > "/usr/lib/systemd/system/lvm-autosnap-initrd.service" > ... > > Oct 04 11:49:20 archlinux systemd[1]: Reached target Initrd Default Target. > Oct 04 11:49:20 ar

Re: [systemd-devel] daemon-reload does not pick up changes to /etc/systemd/system during boot

2022-10-12 Thread Andrei Borzenkov
On 12.10.2022 23:54, Alex Aminoff wrote: I am diskless booting Rocky Linux 9 , using an NFS mounted root. This works OK so far. However, I want to mount /etc/ as a tmpfs and load up a bunch of config files, then have systemd see the (new) /etc/systemd/system and use that in the rest of the boot

Re: [systemd-devel] user unit with delayed users homes mount - ?

2022-10-14 Thread Andrei Borzenkov
On Fri, Oct 14, 2022 at 12:59 PM lejeczek wrote: > > Hi guys. > > I'm on Centos 8 S with systemd 239. > Users homes are mounted at later (latest?) stage off NFS so when such a user > logs in then: > > -> $ systemctl --user status -l xyz.service > Unit xyz.service could not be found. > -> $ system

Re: [systemd-devel] user unit with delayed users homes mount - ?

2022-10-14 Thread Andrei Borzenkov
On Fri, Oct 14, 2022 at 2:48 PM lejeczek wrote: > > > > On 14/10/2022 12:02, Andrei Borzenkov wrote: > > On Fri, Oct 14, 2022 at 12:59 PM lejeczek wrote: > >> Hi guys. > >> > >> I'm on Centos 8 S with systemd 239. > >> Users homes

Re: [systemd-devel] Antw: [EXT] Re: SOLVED: daemon-reload does not pick up changes to /etc/systemd/system during boot

2022-10-24 Thread Andrei Borzenkov
On Mon, Oct 24, 2022 at 9:48 AM Ulrich Windl wrote: > > >>> Alex Aminoff schrieb am 21.10.2022 um 18:11 in > >>> Nachricht > : > > ... > > Just to close out this thread, I am happy to report that > > > > ExecStart=systemctl start --no-block multi-user.target > > > > worked great. > > Makes me wo

Re: [systemd-devel] Antw: [EXT] Re: SOLVED: daemon-reload does not pick up changes to /etc/systemd/system during boot

2022-10-24 Thread Andrei Borzenkov
On Mon, Oct 24, 2022 at 1:24 PM Ulrich Windl wrote: > > > > > What do you call a "recursive start"? "systemctl start" simply tells > > starting multi-user.target via ExecStart=systemctl start starts all depending > units, and probably one of those starts the multi-user.target again. > That's what

Re: [systemd-devel] Bug or misconfiguration for systemd-networkd and VXLAN?

2022-11-14 Thread Andrei Borzenkov
On 14.11.2022 15:49, Lukas Wolf wrote: Hi all and thanks a lot for all your work on systemd! I'm trying to setup a VXLAN configuration with multicast with systemd-networkd but struggle to make it work. What I'm trying to replicate is the following (working command): ip link add vxlan100 type vx

Re: [systemd-devel] Preventing automatic driver loading on live boot disk

2022-11-16 Thread Andrei Borzenkov
On Wed, Nov 16, 2022 at 12:25 PM Vadim Lebedev wrote: > > I'm preparing ubuntu-based live boot disk. It works fine mostly, but on some > machines equipped with Nvidia Quadro cards the default nouveau driver causes > problems (temporary freezes). I've determined that buy blacklisting nouveau > d

Re: [systemd-devel] Preventing automatic driver loading on live boot disk

2022-11-17 Thread Andrei Borzenkov
On 17.11.2022 20:48, Lennart Poettering wrote: On Do, 17.11.22 18:17, Vadim Lebedev (vadiml1...@gmail.com) wrote: Awesome, thanks, it is EXTREMELY useful | Find the right one and denylist it. One more question: how do I 'denylist' the offending alias? Via the "blacklist" stanza in the mo

Re: [systemd-devel] bridge vlan-aware

2022-11-19 Thread Andrei Borzenkov
On 18.11.2022 03:46, Salvatore Mazzarino wrote: Posted a wrong config for br0.netdev. the correct one is the following br0.netdev [NetDev] Name=br0 Kind=bridge [Bridge] DefaultPVID=1 VLANFiltering=yes On Fri, Nov 18, 2022 at 1:43 AM Salvatore Mazzarino wrote: I have a physical interface na

Re: [systemd-devel] bridge vlan-aware

2022-11-19 Thread Andrei Borzenkov
Please reply to list On 19.11.2022 12:05, Salvatore Mazzarino wrote: The vlan 166 has a dhcp server. The switch port is set to accept tagged and untagged traffic. I am not sure what "accept tagged and untagged" traffic does on your switch. But so far it sounds more like switch configurati

Re: [systemd-devel] bridge vlan-aware

2022-11-19 Thread Andrei Borzenkov
On 19.11.2022 12:26, Salvatore Mazzarino wrote: bridge vlan show port vlan-id enp89s0 1 PVID Egress Untagged br0     1 PVID Egress Untagged br166   1 PVID Egress Untagged eth.166 1 Egress Untagged         166 PVID Egress Untagged virbr0  1 PVID Egress Untagged Just to understand. I attach VMs

Re: [systemd-devel] missed _netdev option for nfs

2022-11-30 Thread Andrei Borzenkov
On Thu, Dec 1, 2022 at 8:42 AM Дмитрий Марков wrote: > > Hello, please help me understand the logic of fstab-generator. > > I noticed that now (judging by the links below) an explicit indication of the > _netdev mount option is not necessary and systemd will add it itself. I > conducted an exper

Re: [systemd-devel] Trying to understand change in PCR 4 extension behavior

2022-12-19 Thread Andrei Borzenkov
On 14.12.2022 20:28, Kyle Rose wrote: ... However, in v252, the corresponding event occurs earlier in the log and (after some measurements extending PCR 11) is followed by another BSA event extending PCR 4 with a DevicePath I can't parse from a call I can't seem to find in the systemd source co

Re: [systemd-devel] systemd-timer way of queuing jobs like 'at' command does ?

2022-12-22 Thread Andrei Borzenkov
On Thu, Dec 22, 2022 at 11:17 AM Nicolas Pillot wrote: > > Hello > > I am wondering if i can dynamically plan jobs (once) using systemd timer. > What i mean by that is kind of replicating the usage of the 'at' command > systemd-run --on-calendar=tomorrow echo I am at replacement > If not, could

Re: [systemd-devel] how to run a shell in my systemd initramfs before pivot root

2022-12-27 Thread Andrei Borzenkov
On 26.12.2022 22:56, marty leisner wrote: I'd like to be able to run a shell before completing the pivot (I'm running ubuntu core 20). I'm well versed in systemV init, but not systemd. How do I simulate the initramfs debugging methodology of "break=init" or "break=mount" using systemd (i.e. dro

Re: [systemd-devel] Trying to understand change in PCR 4 extension behavior

2022-12-30 Thread Andrei Borzenkov
hanks, Kyle On Mon, Dec 19, 2022 at 1:36 PM Andrei Borzenkov wrote: On 14.12.2022 20:28, Kyle Rose wrote: ... However, in v252, the corresponding event occurs earlier in the log and (after some measurements extending PCR 11) is followed by another BSA event extending PCR 4 with a DevicePath I

Re: [systemd-devel] Ordering issues

2023-01-04 Thread Andrei Borzenkov
On 04.01.2023 21:21, Scott Ellentuch wrote: Hi, I'm trying to do something with inconsistent results and wondered where I'm going wrong. I recently installed GLUSTERFS onto a set of 4 Raspberry PI's, but am having some boot sequencing issues. It started trying to run rsyslogd. Apparently, it wa

Re: [systemd-devel] Order-only mount units?

2023-01-07 Thread Andrei Borzenkov
On 07.01.2023 19:06, Norbert Lange wrote: Hello, Say want a service unit which mounts some stuff, then does further steps (create some initial files, etc..). The problem here is that it is not automatically ordered in regards to mounts in the subdirectories or some other dependencies like Requir

Re: [systemd-devel] service dependencies

2023-01-10 Thread Andrei Borzenkov
On Tue, Jan 10, 2023 at 2:48 PM Markus Rathgeb wrote: > > Hello, > > I have a question about service dependencies. > > Assume there are two services > * test1 > * test2 > > (for testing purpose only I am using user services) > > The test2 service requires that test1 service is active. > The test2

Re: [systemd-devel] efivarfs mounting

2023-01-16 Thread Andrei Borzenkov
On 16.01.2023 20:30, Michał Zegan wrote: Hello, What should be responsible for mounting efivarfs? systemd itself (PID 1) when it is started Using systemd-251 on fedora37, and my machine is booted in uefi mode also with secureboot, but /sys/firmware/efi/efivars is not mounted on boot, why?

Re: [systemd-devel] networkd: Link local static IP address behind NAT

2023-01-17 Thread Andrei Borzenkov
On 17.01.2023 18:28, Thomas Burghout wrote: Hello, We are trying to configure a device to use a gateway and a static IP address (in the link-local address range). However, the default gateway does not appear to be used. As such, there is no traffic possible to the internet. The device runs syst

Re: [systemd-devel] networkd: Link local static IP address behind NAT

2023-01-19 Thread Andrei Borzenkov
On 18.01.2023 17:12, Thomas Burghout wrote: On 18.01.20233 04:06, Andrei Borzenkov wrote: On 17.01.2023 18:28, Thomas Burghout wrote: inet 169.254.146.171/16 brd 169.254.255.255 scope link eth0 Is it output from the correct system? Because address is different. I do not see how "

Re: [systemd-devel] Ordering cycle when trying to use BindToDevice socket option

2023-03-31 Thread Andrei Borzenkov
On 01.04.2023 01:12, Dmitri Kourennyi wrote: The message seems to imply that systemd-networkd depends on sockets.target, which in turn depends on the tinyssh socket, but that in turn needs systemd-networkd to run to create the target device. I Socket units have implicit Before=sockets.target wh

Re: [systemd-devel] why systemd-boot (seems as everyone else) does not check the signatures of initramfs?

2023-05-23 Thread Andrei Borzenkov
On 23.05.2023 21:54, Felix Rubio wrote: Hi everybody, I am trying to understand something, and after looking around I have not found any explicit answer. Maybe somebody in this list can shed some light on the matter? I have a laptop in which I am setting up the boot process through systemd-boot,

Re: [systemd-devel] why systemd-boot (seems as everyone else) does not check the signatures of initramfs?

2023-05-24 Thread Andrei Borzenkov
need to either wrap it in PE (which is effectively what UKI does) or develop a new standard for attaching signature to initrd. For example, using grub2 GPG keys :) > Thank you > > --- > Felix Rubio > "Don't believe what you're told. Double check." > > On 20

Re: [systemd-devel] By what mechanism are locale-related environment variables (LC_*) set in services?

2023-05-25 Thread Andrei Borzenkov
On 25.05.2023 17:12, Farblos wrote: Running on systemd 252 (252.6-1) on Debian testing. It seems that systemd services, also transient ones, get the full set of locale environment variables (LANG, LANGUAGE, LC_*) as defined in /etc/default/locale. I only have found environment variable $LANG m

Re: [systemd-devel] Under what condition would systemd not restart a target service.

2023-06-03 Thread Andrei Borzenkov
On 03.06.2023 15:25, Virendra Negi wrote: I noticed a couple of days back that in the event of an apt-get update of the target services, our services did not start. "target service" sounds very strange in systemd world. Apparently, the service was in a sleeping state when it was upgraded. W

Re: [systemd-devel] Usage of PCR[7]

2023-06-05 Thread Andrei Borzenkov
On Tue, Jun 6, 2023 at 8:20 AM Mantas Mikulėnas wrote: > > On Mon, Jun 5, 2023 at 11:38 PM Adrian Vovk wrote: >> >> >> 2. The alternative approach involves pre-calculating PCR[7] on the >> client if we're updating DBX or Shim. Here's how I envision this >> going: >> - We read the TPM log (which w

Re: [systemd-devel] sd-boot setup and PCRs

2023-06-18 Thread Andrei Borzenkov
On 18.06.2023 21:56, Felix Rubio wrote: Hi everybody, After some days offline, today I have gone through the emails exchanged a couple of weeks ago and agreed: UKI is the way to go. Last time I checked about it I read about possible problems related to when some modules would be loaded and so, b

Re: [systemd-devel] sd-boot setup and PCRs

2023-06-19 Thread Andrei Borzenkov
d disk. I am not familiar with details of UKI implementation, but if it is possible to override kernel command line, you can trivially boot into /bin/sh unless you also bind LUKS key to the PCR 12 (or whatever is used to measure kernel parameters). Regards! Felix On 2023-06-19 06:26, Andr

Re: [systemd-devel] sd-boot setup and PCRs

2023-06-19 Thread Andrei Borzenkov
disk. I am not familiar with details of UKI implementation, but if it is possible to override kernel command line, you can trivially boot into /bin/sh unless you also bind LUKS key to the PCR 12 (or whatever is used to measure kernel parameters). Regards! Felix On 2023-06-19 06:26, Andrei Borz

Re: [systemd-devel] PAMName=login, systemctl stop

2023-07-03 Thread Andrei Borzenkov
On 03.07.2023 14:17, Lennart Poettering wrote: On Mo, 03.07.23 10:58, Valentijn Sessink (valent...@sessink.nl) wrote: Now my remaining question is probably so very basic, that you sort of missed it: my "session" is started from a script and so I'm probably able to stop all services in the sessi

Re: [systemd-devel] Why is my reboot.target disabled?

2023-07-04 Thread Andrei Borzenkov
On 04.07.2023 14:58, Ferenc Wágner wrote: Hi, Please help me understand this phenomenon (systemd 252): $ systemctl status ctrl-alt-del.target ○ reboot.target - System Reboot Loaded: loaded (/lib/systemd/system/reboot.target; disabled; preset: enabled) Active: inactive (dead)

Re: [systemd-devel] Why is my reboot.target disabled?

2023-07-05 Thread Andrei Borzenkov
On 05.07.2023 11:57, Ferenc Wágner wrote: Andrei Borzenkov writes: On 04.07.2023 14:58, Ferenc Wágner wrote: Please help me understand this phenomenon (systemd 252): $ systemctl status ctrl-alt-del.target ○ reboot.target - System Reboot Loaded: loaded (/lib/systemd/system

Re: [systemd-devel] Networkd doesn't create route for IP in different but connected net with GatewayOnLink= Inbox

2023-07-12 Thread Andrei Borzenkov
On Wed, Jul 12, 2023 at 10:44 AM LunarLambda wrote: > > Hello, > > I was recently tasked with moving existing network configuration for a > machine and some nspawn containers from iupdown to networkd. > > The situation looks as follows: > > A single VPS has 3 IPs. One 37.x.x.x/22, and two 91.x.x.

Re: [systemd-devel] Networkd doesn't create route for IP in different but connected net with GatewayOnLink= Inbox

2023-07-12 Thread Andrei Borzenkov
#x27;m not sure this represents a meaningful difference. > > On Wed, 12 Jul 2023 at 10:29, Andrei Borzenkov wrote: >> >> On Wed, Jul 12, 2023 at 10:44 AM LunarLambda wrote: >> > >> > Hello, >> > >> > I was recently tasked with moving existing n

Re: [systemd-devel] multiple starts for a socket-based service

2023-08-05 Thread Andrei Borzenkov
On 06.08.2023 03:42, Ross Boylan wrote: On Fri, Aug 4, 2023 at 4:32 PM Kevin P. Fleming wrote: On Fri, Aug 4, 2023, at 18:11, Ross Boylan wrote: Theory: since br0 has no associated IP address when socket creation is attempted, the socket creation fails. If so, I need to delay socket startup

Re: [systemd-devel] Service not run, although enabled

2023-08-07 Thread Andrei Borzenkov
On Mon, Aug 7, 2023 at 11:49 AM Martin Stenzel wrote: > > > Hi list, > I searched the _whole_ www but did not find the answer. > > > > I use bestcrypt > to mount the home directory. > > > This is my service file. > > -- > [Unit] > Description=Mount Bestcrypt containers > Wants=local-fs.target >

Re: [systemd-devel] Service not run, although enabled

2023-08-08 Thread Andrei Borzenkov
On Tue, Aug 8, 2023 at 11:31 AM Martin Stenzel wrote: ... > Your answer: > These Wants and After are redundant, every standard service will be > ordered after local-fs.target unless it also has > DefaultDependencies=no. > > My answer/question: > I want my service to be run DIRECTLY (at first place

Re: [systemd-devel] Ordering dependency on device unit not working

2023-08-13 Thread Andrei Borzenkov
On 13.08.2023 22:37, Ian Pilcher wrote: I am attempting to create a service that will load device-specific netfilter rules after the corresponding device has been created (bonds, VLANs, etc.). Here is my current attempt. [Unit] Description=Apply device-specific nftables rules for %I Wa

Re: [systemd-devel] systemd-cryptenroll with TPM2

2023-08-23 Thread Andrei Borzenkov
On Tue, Aug 22, 2023 at 10:45 PM Aleksandar Kostadinov wrote: > > On Tue, Aug 22, 2023 at 8:10 PM Lennart Poettering > wrote: > > On Di, 22.08.23 19:16, Aleksandar Kostadinov (akost...@redhat.com) wrote: > <...> > > > If attacker replaces volume with unencrypted one, and it boots without > > > me

Re: [systemd-devel] systemd-cryptenroll with TPM2

2023-08-23 Thread Andrei Borzenkov
On Wed, Aug 23, 2023 at 12:50 PM Aleksandar Kostadinov wrote: > > On Wed, Aug 23, 2023 at 10:49 AM Andrei Borzenkov wrote: > <...> > > > > Sure, if you allow unencrypted systems to boot in your OS then all > > > > bets are off. You shouldn't do tha

Re: [systemd-devel] Normal user can ask status of services

2023-08-26 Thread Andrei Borzenkov
On 26.08.2023 10:44, Cecil Westerhof wrote: Is this the expected behaviour? Yes, it is.

Re: [systemd-devel] Normal user can ask status of services

2023-08-26 Thread Andrei Borzenkov
Do not send personal reply to the list post. On 26.08.2023 15:35, Cecil Westerhof wrote: Op za 26 aug 2023 om 13:45 schreef Andrei Borzenkov : On 26.08.2023 10:44, Cecil Westerhof wrote: Is this the expected behaviour? Yes, it is. It seemed strange to me, but I will not worry then

  1   2   3   4   5   6   7   8   9   10   >