Re: [systemd-devel] Run "ipmitool power cycle" after lib/systemd/system-shutdown scripts

2022-02-10 Thread Etienne Champetier
Le jeu. 10 févr. 2022 à 11:31, Lennart Poettering a écrit : > > On Mi, 09.02.22 22:05, Etienne Champetier (champetier.etie...@gmail.com) > wrote: > > > Hello systemd hackers, > > > > After flashing the firmware of some pcie card I need to power cycle > > the s

Re: [systemd-devel] [EXT] Re: Run "ipmitool power cycle" after lib/systemd/system-shutdown scripts

2022-02-10 Thread Etienne Champetier
Le jeu. 10 févr. 2022 à 11:49, Ulrich Windl a écrit : > > >>> Lennart Poettering schrieb am 10.02.2022 um 11:31 > in > Nachricht : > > On Mi, 09.02.22 22:05, Etienne Champetier (champetier.etie...@gmail.com) > > wrote: > > > >> Hello systemd hacker

[systemd-devel] Run "ipmitool power cycle" after lib/systemd/system-shutdown scripts

2022-02-09 Thread Etienne Champetier
Hello systemd hackers, After flashing the firmware of some pcie card I need to power cycle the server to finish the flashing process. For now I have a simple script in lib/systemd/system-shutdown/ running "ipmitool power cycle" but I would like to make sure it runs after other scripts like

Re: [systemd-devel] Help required for configuring a blocking service during shutdown

2022-08-31 Thread Etienne Champetier
Hi, Le lun. 29 août 2022 à 06:31, Henning Moll a écrit : > > Hi, > > back in the rcX days I configured a backup system which blocks a system > shutdown in a certain state (network and mounts still active) if a backup is > still running. The init script looks like this: > > ... > case "$1" in >

Re: [systemd-devel] [EXT] Finding network interface name in different distro

2022-10-18 Thread Etienne Champetier
Le mar. 18 oct. 2022 à 10:04, Ulrich Windl a écrit : > > >>> Etienne Champetier schrieb am 15.10.2022 um > 02:41 in Nachricht > : > > Hi All, > > > > When changing distro or distro major versions, network interfaces' > > names sometimes change. >

Re: [systemd-devel] Finding network interface name in different distro

2022-10-18 Thread Etienne Champetier
Le mar. 18 oct. 2022 à 10:11, Greg Oliver a écrit : > > On Fri, Oct 14, 2022 at 7:42 PM Etienne Champetier > wrote: >> >> Hi All, >> >> When changing distro or distro major versions, network interfaces' >> names sometimes change. >> For example on so

Re: [systemd-devel] Finding network interface name in different distro

2022-10-18 Thread Etienne Champetier
Le dim. 16 oct. 2022 à 08:32, Lennart Poettering a écrit : > > On Fr, 14.10.22 22:24, Etienne Champetier (champetier.etie...@gmail.com) > wrote: > > > Le ven. 14 oct. 2022 ą 20:41, Etienne Champetier > > a écrit : > > > > > > Hi All, > > >

Re: [systemd-devel] Finding network interface name in different distro

2022-10-14 Thread Etienne Champetier
Le ven. 14 oct. 2022 à 20:41, Etienne Champetier a écrit : > > Hi All, > > When changing distro or distro major versions, network interfaces' > names sometimes change. > For example on some Dell server running CentOS 7 the interface is > named em1 and running Alma 8 it's

[systemd-devel] Finding network interface name in different distro

2022-10-14 Thread Etienne Champetier
Hi All, When changing distro or distro major versions, network interfaces' names sometimes change. For example on some Dell server running CentOS 7 the interface is named em1 and running Alma 8 it's eno1. I'm looking for a way to find the new interface name in advance without booting the new OS.

Re: [systemd-devel] CPUAffinity=all ?

2023-03-23 Thread Etienne Champetier
Le jeu. 23 mars 2023 à 16:37, Etienne Champetier a écrit : > > Hello, > > I'm setting `CPUAffinity=0-1` in /etc/systemd/system.conf, this works great. > Now, I want one of my units to set CPUAffinity to all available CPUs, > without knowing the number of CPUs. > Using

[systemd-devel] CPUAffinity=all ?

2023-03-23 Thread Etienne Champetier
Hello, I'm setting `CPUAffinity=0-1` in /etc/systemd/system.conf, this works great. Now, I want one of my units to set CPUAffinity to all available CPUs, without knowing the number of CPUs. Using `CPUAffinity=` reset the setting but we are still inheriting from the parent so I still have

[systemd-devel] Fastest way to dump last X Mo of logs from the journal ?

2024-04-24 Thread Etienne Champetier
Hi all, sos report includes the last X Mo of logs, sometimes filtered, sometimes not right now it's doing the equivalent of "journalctl | tail -cXm", which reads / format all logs, which can be extremely slow The fastest way I found so far is: journalctl --reverse | head -c Xm | tac This still

Re: [systemd-devel] Fastest way to dump last X Mo of logs from the journal ?

2024-04-25 Thread Etienne Champetier
Le jeu. 25 avr. 2024 à 08:38, Lennart Poettering a écrit : > > On Do, 25.04.24 12:49, Andy Pieters (syst...@andypieters.me.uk) wrote: > > > On Thu, 25 Apr 2024 at 12:48, Lennart Poettering > > wrote: > > > > > On Mi, 24.04.24 14:48, Etienne Champetier (champ

[systemd-devel] systemd-run unset OnFailure property

2024-05-16 Thread Etienne Champetier
I'm trying to add a global OnFailure= to all the services and excluding some non important services with /dev/null symlinks Now when using systemd-run in some cases I also don't want to run the OnFailure handler I tried (and multiple small variations) ``` systemd-run --unit=test