Re: [systemd-devel] [External] Re: How to set the timeout of emergency mode

2024-06-13 Thread Mark Zhang (NSB)
Hello Itxaka, I have tried the scenario, 1. Update the emergency service with JobRunningTimeoutSec=300 and JobTimeoutAction=reboot-force; (/usr/lib/systemd/system/emergency.service) 2. Reload service: systemctl daemon-reload 3. Start the service manually: systemctl start emergency; (Is t

Re: [systemd-devel] Systemd, cgrupsv2, cgrulesengd, and nftables

2024-06-13 Thread Lennart Poettering
On Do, 13.06.24 21:38, Mikhail Morfikov (mmorfi...@gmail.com) wrote: > I'm trying to make the 4 things (systemd, cgrupsv2, cgrulesengd, and nftables) > work together, but I think I'm missing something. Is "cgrulesengd" interfering with the cgroup tree? Sorry, but that's simply not supported. cgr

[systemd-devel] Systemd, cgrupsv2, cgrulesengd, and nftables

2024-06-13 Thread Mikhail Morfikov
I'm trying to make the 4 things (systemd, cgrupsv2, cgrulesengd, and nftables) work together, but I think I'm missing something. Basically what I want to achieve is the filtering of OUTPUT packets in nftables in the case of all user apps. System services work well either with systemd+cgrupsv2+nft

Re: [systemd-devel] Custom initrd services

2024-06-13 Thread Carolina Jubran
>> Hello! >> >> I have modules that need to be loaded using services because some of >> them don't autoload their modules. >"Modules"? do you mean kmod kernel modules with that? Yes >> I want the modules to load in initrd, before initrd.target. However, >> the service is not consistently loading

Re: [systemd-devel] "primary" Condition for drbd?

2024-06-13 Thread Brian Masney
On Thu, Jun 13, 2024 at 10:08 AM Lennart Poettering wrote: > On Do, 13.06.24 11:27, Harald Dunkel (harald.dun...@aixigo.com) wrote: > > I missed to mention, drbdadm does know: > > > > # drbdadm role space > > Primary/Secondary > > > > meaning "space" is primary on this host. You can al

Re: [systemd-devel] Custom initrd services

2024-06-13 Thread Carolina Jubran
>> Hello! >> >> I have modules that need to be loaded using services because some of >> them don't autoload their modules. >"Modules"? do you mean kmod kernel modules with that? Yes >> I want the modules to load in initrd, before initrd.target. However, >> the service is not consistently loading

Re: [systemd-devel] "primary" Condition for drbd?

2024-06-13 Thread Lennart Poettering
On Do, 13.06.24 11:27, Harald Dunkel (harald.dun...@aixigo.com) wrote: > I missed to mention, drbdadm does know: > > # drbdadm role space > Primary/Secondary > > meaning "space" is primary on this host. You can also look > at /proc/drbd: > > # cat /proc/drbd > version: 8.4.

[systemd-devel] "Failed to enable unit: Access denied"?

2024-06-13 Thread Divine Eguzouwa
I am unable to freely create & enable user unit files and I'm not sure why $ systemctl edit --user --force --full test.service Successfully installed edited file '/home/me/.config/systemd/user/test.service'. $ cat /home/me/.config/systemd/user/test.service [Unit] Description=Test user unit files

Re: [systemd-devel] "primary" Condition for drbd?

2024-06-13 Thread Harald Dunkel
On 2024-06-13 11:32:47, Andrei Borzenkov wrote: What you are looking for is the pacemaker. Not exactly. I am looking for pacemaker-like functionality provided by systemd. A manual fail-over is fine with me, for example. I tried pacemaker before (years ago), but I wasn't happy with it. Regar

Re: [systemd-devel] "primary" Condition for drbd?

2024-06-13 Thread Andrei Borzenkov
On Thu, Jun 13, 2024 at 12:27 PM Harald Dunkel wrote: > > I missed to mention, drbdadm does know: > > # drbdadm role space > Primary/Secondary > > meaning "space" is primary on this host. You can also look > at /proc/drbd: > > # cat /proc/drbd > version: 8.4.11 (api

Re: [systemd-devel] "primary" Condition for drbd?

2024-06-13 Thread Harald Dunkel
I missed to mention, drbdadm does know: # drbdadm role space Primary/Secondary meaning "space" is primary on this host. You can also look at /proc/drbd: # cat /proc/drbd version: 8.4.11 (api:1/proto:86-101) srcversion: 19D914EA50F713FCCE48607 1: