Re: [systemd-devel] Submitting a service activation to remote mounts success

2024-02-07 Thread Thomas HUMMEL
= comes for free) But then if some such .mount units would get unmonted remote-fs.target's Requires= would not deactivate remote-fs.target and my service would in turn not be deactivated Thanks for your help -- Thomas HUMMEL

Re: [systemd-devel] Submitting a service activation to remote mounts success

2024-02-07 Thread Thomas HUMMEL
On 2/7/24 11:50, Thomas HUMMEL wrote: Still I cannot understand where the Requires= comes in remote-fs.target unit as doc for special target only describes a Wants= dep added by systemd-fstab-generator in the case of auto mounts. Well, forget about that Wants= dep which is to the mount

Re: [systemd-devel] Submitting a service activation to remote mounts success

2024-02-07 Thread Thomas HUMMEL
On 2/6/24 17:06, Silvio Knizek wrote: Hi Thomas, RequiresMountsFor=3D should be your friend. It just takes a space- separated list of paths and does all the other stuff by itself. Hello, thanks for your reply. Actually RequiresMountsFor is not what I need because I'd have to point some

[systemd-devel] Submitting a service activation to remote mounts success

2024-02-06 Thread Thomas HUMMEL
the mount process does not seem to be involved in the ordering dep, or does it ? Thanks for your help -- Thomas HUMMEL

[systemd-devel] Service units handling naive questions

2023-06-07 Thread Thomas HUMMEL
unning instances ? Thanks for your help -- Thomas HUMMEL

Re: [systemd-devel] systemd-resolved/NetworkManager resolv.conf handling

2022-11-08 Thread Thomas HUMMEL
_INTERFACE" -o "$ACTION" != "up" ] && exit 0 [ "$INTERFACE" == "$F5_INTERFACE" -a "$ACTION" == "up" ] && echo "$SCRIPT_NAME: adding $F5_INTERFACE nameservers to systemd-resolved configuration" /usr/bin/resolvectl dns $F5_INTERFACE $F5_NAMESERVER_1 $F5_NAMESERVER_2 || { echo "Pb running resolvectl" ; usage 1 ; } exit 0 -- Thomas HUMMEL

Re: [systemd-devel] systemd-resolved/NetworkManager resolv.conf handling

2022-11-07 Thread Thomas HUMMEL
dispatcher mechanism to run resolvectl at the right time without touching resolvconf ? This would still be a workaround though. Thanks for your help -- Thomas HUMMEL

Re: [systemd-devel] systemd-resolved/NetworkManager resolv.conf handling

2022-11-07 Thread Thomas HUMMEL
(yes it is green but lists no ipv4.dns property) $ nmcli -f GENERAL.NM-MANAGED device show tun0 GENERAL.NM-MANAGED: yes $ nmcli -f ipv4.dns connection show tun0 ipv4.dns: Thanks for your help -- Thomas HUMMEL

Re: [systemd-devel] systemd-resolved/NetworkManager resolv.conf handling

2022-11-02 Thread Thomas HUMMEL
where the specific ns <-> interface is persited or stored or is this global updating all there is ? Thanks for your help -- Thomas HUMMEL

[systemd-devel] systemd-resolved/NetworkManager resolv.conf handling

2022-10-26 Thread Thomas HUMMEL
al state ? Thanks for your help -- Thomas HUMMEL

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

2022-09-12 Thread THomas HUMMEL
> On 9/9/22 18:09, Andrei Borzenkov wrote: Hello, maybe referring to https://lists.freedesktop.org/archives/systemd-devel/2022-January/047342.html would help clarify ? -- TH

Re: [systemd-devel] Antw: Re: Antw: [EXT] Re: Q: Change a kernel setting

2022-07-29 Thread Thomas HUMMEL
agree though that tmpfiles seems to be the most elegant way in general to perform such things. Thanks. -- Thomas HUMMEL

Re: [systemd-devel] Antw: [EXT] Re: Q: Change a kernel setting

2022-07-29 Thread Thomas HUMMEL
-July/048100.html So I rolled back to a service unit and even so I did have to order it After= a late (custom) target None of this was satisfactory but I did not manage to find out what happened. Thanks -- Thomas HUMMEL

Re: [systemd-devel] Disabling cpufreq/boost at boot time sometimes fails

2022-07-13 Thread Thomas HUMMEL
iginal naive setting (tmpfiles or service). Thanks again anyway. -- Thomas HUMMEL

Re: [systemd-devel] Disabling cpufreq/boost at boot time sometimes fails

2022-07-13 Thread Thomas HUMMEL
On 13/07/2022 00:35, Silvio Knizek wrote: Am Dienstag, dem 12.07.2022 um 18:55 +0200 schrieb Thomas HUMMEL: Hi, Hello, thanks for your answer first of all, no need for /sys in /etc/fstab. /sys will _always_ be mounted by systemd. Ok. This must be put by our image generating tool

[systemd-devel] Disabling cpufreq/boost at boot time sometimes fails

2022-07-12 Thread Thomas HUMMEL
ion I should look, if it is systemd related at all ? Thanks for your help -- Thomas HUMMEL

Re: [systemd-devel] Passive vs Active targets

2022-02-15 Thread Thomas HUMMEL
provider know about ? Thanks for your help -- Thomas HUMMEL

Re: [systemd-devel] Passive vs Active targets

2022-02-15 Thread Thomas HUMMEL
On 15/02/2022 18:13, Lennart Poettering wrote: On Di, 15.02.22 17:30, Thomas HUMMEL (thomas.hum...@pasteur.fr) wrote: A passive unit is a sync point that should be pulled in by the service that actually needs it to operate correctly. hence: ask the question whether networkd/NetworkManager

Re: [systemd-devel] Passive vs Active targets

2022-02-15 Thread Thomas HUMMEL
be pulled in, correct ? So before ordering around it one can make sure some unit pulls the checkpoint ? Thanks for your help -- Thomas HUMMEL

Re: [systemd-devel] Passive vs Active targets

2022-02-15 Thread Thomas HUMMEL
My question was that silly ? ;-) -- Thomas HUMMEL

Re: [systemd-devel] Antw: [EXT] [systemd‑devel] Why is using fstab the preferred approach according to systemd.mount man page?

2022-02-07 Thread Thomas HUMMEL
? Thanks -- Thomas HUMMEL

[systemd-devel] Passive vs Active targets

2022-01-31 Thread Thomas HUMMEL
only Infiniband remote mounts ? So my question would revolve around the above points Can you help me figuring out the correct way to see those concepts ? Thanks for your help -- Thomas HUMMEL

Re: [systemd-devel] Crond session, pam_access and pam_systemd

2020-10-26 Thread Thomas HUMMEL
'm correct, this would be the reason more than the pid 1 direct parenthood you mentionned. Otherwise, in the standard services (not using PAMName=) case this would work only with the type=forking services, wouldn't it ? Thanks for your help -- Tho

Re: [systemd-devel] Crond session, pam_access and pam_systemd

2020-10-16 Thread Thomas HUMMEL
user@.service just for the user to be able to use its own systemd instance (which in my case of user crontab is not used) ? I all of my guesses are correct I still have to figure out the exact problem I had when the user (who had a crontab) was not allowed to access systemd-user pam service. Thanks

Re: [systemd-devel] Crond session, pam_access and pam_systemd

2020-10-16 Thread Thomas HUMMEL
whereas crond semmes to need it (givent no systemd --user was previously running in both cases) ? Thanks for your help -- Thomas HUMMEL ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd

Re: [systemd-devel] Crond session, pam_access and pam_systemd

2020-10-15 Thread Thomas HUMMEL
On 10/14/20 8:13 PM, Andrei Borzenkov wrote: And both sshd and crond include pam_access in their configuration? Yes, crond has the same session incude of password-auth. Thanks -- Thomas HUMMEL ___ systemd-devel mailing list systemd-devel

Re: [systemd-devel] Crond session, pam_access and pam_systemd

2020-10-14 Thread Thomas HUMMEL
On 14/10/2020 13:24, Andrei Borzenkov wrote: On Wed, Oct 14, 2020 at 11:42 AM Thomas HUMMEL wrote: Hello, thanks for your answer. It's getting clearer. Still : why would the user crond runs on behalf of needs to be allowed in access.conf to access the systemd-user service ? My

Re: [systemd-devel] Crond session, pam_access and pam_systemd

2020-10-14 Thread Thomas HUMMEL
?) such a rule in access.conf is not needed for let's say a ssh login first session ? Thanks for your help -- Thomas HUMMEL On 13/10/2020 20:05, Simon McVittie wrote: On Tue, 13 Oct 2020 at 13:09:43 +0200, Thomas HUMMEL wrote: Ok, so for instance, on my debian, when I see: user@1000.service

Re: [systemd-devel] Crond session, pam_access and pam_systemd

2020-10-13 Thread Thomas HUMMEL
Ok so it's this service (systemd --user) which uses the systemd-user PAM service name ? Passed to the generic sd-pam worker ? Correct ? Yes. You said above that it was only at the creation of this service ? Thanks for your help -- Tho

Re: [systemd-devel] Crond session, pam_access and pam_systemd

2020-10-12 Thread Thomas HUMMEL
what service exactly is started ? crond opening its PAM session does not cause a systemd --user to be instanciated or does it ? I thought the only way to have a systemd --user was through the creation via pam_systemd notifying systemd-logind at a user fist login (and/or to linger the user) Thanks for

[systemd-devel] Crond session, pam_access and pam_systemd

2020-10-12 Thread Thomas HUMMEL
message (which makes me think about the creation of the crond session through the systemd --user instance running a job) Thanks for your help and sorry for the confusion -- Thomas HUMMEL ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org

Re: [systemd-devel] systemd.net-naming-scheme change after update

2020-08-14 Thread Thomas HUMMEL
Thanks for your answer On 8/11/20 5:43 PM, Michal Sekletar wrote: On Wed, Aug 5, 2020 at 4:12 PM Thomas HUMMEL On RHEL/CentOS 8 biosdevname naming is not used unless it is explicitly enabled on the kernel command line using biosdevname=1. Indeed I've read the udev rule too fast

[systemd-devel] systemd.net-naming-scheme change after update

2020-08-05 Thread Thomas HUMMEL
evious step ? What was the use of the biosdevname stop then ? finally, what does "If the kernel claims that the name it has set for a device is predictable" mean (https://www.freedesktop.org/software/systemd/man/systemd.link.html#) ? And what is the kernel name (%k) : is it alway

Re: [systemd-devel] systemd-journald, syslog.socket and service activation

2020-07-03 Thread Thomas HUMMEL
4 ou 5 systemctl start rsyslog.service and only the last one succeeds corresponds to this "race condition" you described above ? Thanks a lot for your explanations. Makes more sense now. -- Thomas HUMMEL ___ systemd-devel mail

Re: [systemd-devel] systemd-journald, syslog.socket and service activation

2020-07-02 Thread Thomas HUMMEL
but, again, without the After= having any effect, it should not matter, should it ? So I'm still convinces I'm missing something obvious... Thanks for your help -- Thomas HUMMEL ___ systemd-devel mailing list systemd-devel@lists.freedesktop

Re: [systemd-devel] systemd-journald, syslog.socket and service activation

2020-07-02 Thread Thomas HUMMEL
unit will not be started. " That's what I meant and though it does seems so at boot, I seemed to experience the contrary when manually starting rsyslog.service... So I must like you said misunderstand something... Thanks for your help -- Tho

[systemd-devel] systemd-journald, syslog.socket and service activation

2020-07-02 Thread Thomas HUMMEL
it at the last start command) # ls -l /run/systemd/journal/syslog ls: cannot access '/run/systemd/journal/syslog': No such file or directory What am I missing ? Note: rsyslog service is of Type notify and has a Restart value of no-fail Thanks for your help -- Thomas HUMMEL

Re: [systemd-devel] hostnamectl reapplying the same hostname

2020-06-16 Thread Thomas HUMMEL
On 16/06/2020 10:08, Lennart Poettering wrote: On Mo, 25.05.20 16:19, Thomas HUMMEL (thomas.hum...@pasteur.fr) wrote: Hello, the point below has been buried at the end one of a previous thread. So feel free to ignore it if you find it irrelevant. With systemd-239 on linux 4.18.0 (CentOS

Re: [systemd-devel] Ordering a service before remote-fs-pre.target makes it quite longer

2020-05-25 Thread Thomas HUMMEL
On 16/05/2020 08:16, Andrei Borzenkov wrote: 15.05.2020 12:57, Thomas HUMMEL пишет: In other words : is it a bad practice to order a home made service before remote-fs-pre.target ? Why would it be? The very reason remote-fs-pre.target was added is to allow services to be reliably started

[systemd-devel] hostnamectl reapplying the same hostname

2020-05-25 Thread Thomas HUMMEL
Hello, the point below has been buried at the end one of a previous thread. So feel free to ignore it if you find it irrelevant. With systemd-239 on linux 4.18.0 (CentOS 8.1), why does hostnamectl --static set-hostname instantly sets the transient hostname to *only* when is not the

Re: [systemd-devel] Ordering a service before remote-fs-pre.target makes it quite longer

2020-05-15 Thread Thomas HUMMEL
On 14/05/2020 07:35, Andrei Borzenkov wrote: It does not match your graphs. Your service is apparently ordered after network-online.target (not after network.target) and startup is most certainly initiated before rsyslog.service. Not hat it explains anything but at least you need to provide

[systemd-devel] Ordering a service before remote-fs-pre.target makes it quite longer

2020-05-13 Thread Thomas HUMMEL
? Thanks for your help -- Thomas HUMMEL ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel

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

2020-05-11 Thread Thomas HUMMEL
On 5/6/20 11:51 AM, Thomas HUMMEL wrote: 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. Hello, am I wrong on this one ? Hello, sorry to insist, I just wanted

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

Re: [systemd-devel] local-fs and remote-fs targets / passive active units

2020-05-05 Thread Thomas HUMMEL
On 5/5/20 7:41 PM, Andrei Borzenkov wrote: a) Before= does not pull anything anywhere. Yes I know sorry I did not use the correct term. I did not mean that. b) as you already found, by default every service is ordered after local-fs.target. You need DefalutDependencies=no if you want to

Re: [systemd-devel] local-fs and remote-fs targets / passive active units

2020-05-05 Thread Thomas HUMMEL
On 5/5/20 5:27 PM, Thomas HUMMEL wrote: On 5/5/20 5:15 PM, Thomas HUMMEL wrote: -> this seems to be like an actual run and not only the queuing of a job into the transaction which would be discarded afterwards when the cycle is discovered ? Ok I figure out this one : I was confus

Re: [systemd-devel] local-fs and remote-fs targets / passive active units

2020-05-05 Thread Thomas HUMMEL
On 5/5/20 5:15 PM, Thomas HUMMEL wrote: -> this seems to be like an actual run and not only the queuing of a job into the transaction which would be discarded afterwards when the cycle is discovered ? Ok I figure out this one : I was confusing the systemd-tmpfiles-setup.service from ini

Re: [systemd-devel] local-fs and remote-fs targets / passive active units

2020-05-05 Thread Thomas HUMMEL
On 4/28/20 5:36 PM, Thomas HUMMEL wrote: 3) regarding local-fs dans remote-fs targets : I'm not really sure if any fits in either passive or active units. Hello again, regarding local-fs.target : is it legit for a custom service unit to pull it in with a Before=local-fs.target (no Wants

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

2020-05-04 Thread Thomas HUMMEL
: in particular starting from this post (the post above just show how much I was confused) https://mail.gnome.org/archives/networkmanager-list/2020-April/msg00031.html of this thread https://mail.gnome.org/archives/networkmanager-list/2020-April/msg00022.html Thanks for your help -- Thomas HUMMEL

[systemd-devel] local-fs and remote-fs targets / passive active units

2020-04-28 Thread Thomas HUMMEL
y fits in either passive or active units. I see that local-fs.target can be pulled in by sysinit.target and that dracut-pre-pivot.target can pull in remote-fs.target but to me those 2 targets would rather fit the passive unit category ? Thanks for your help -- Thomas HUMMEL __

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

2020-04-27 Thread Thomas HUMMEL
On 4/27/20 11:51 AM, Mantas Mikulėnas wrote: Hello, thanks for your answer. On Mon, Apr 20, 2020 at 6:17 PM Thomas HUMMEL <mailto:thomas.hum...@pasteur.fr>> wrote: 1. why does the transient hostname change while I stated --static only while running hostnamectl ? 2.

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

2020-04-27 Thread Thomas HUMMEL
On 4/27/20 11:16 AM, Thomas HUMMEL wrote: Actually, I noticed this is true when NetworkManager's hostname-mode setting is set to 'none'. If set to 'dhcp', the transient hostname aligns instantly to the new static one. Sorry I may be wrong on this one as I can not reproduce it. Thanks -- TH

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

2020-04-27 Thread Thomas HUMMEL
On 4/20/20 5:10 PM, Thomas HUMMEL wrote: At this point, the transient hostname is unchanged (which is what I'd expect) as seen with hostnamectl above or directly asking dbus: [root@maestro-1000 ~]# dbus-send --print-reply --system --dest=org.freedesktop.hostname1 /org/freedesktop/hostname1

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

2020-04-20 Thread Thomas HUMMEL
not ran it myself and NetworkManager (hostname-mode=none) does not manage the transient hostname. It only uses this service as a proxy to get the 'original' hostname. Thanks for your help -- Thomas HUMMEL ___ systemd-devel mailing list systemd