Re: [systemd-devel] Private network namespace and /etc/resolv.conf

2024-09-17 Thread serenissi
man systemd.exec: PrivateMounts= Takes a boolean parameter. When turned on, this executes three operations for each invoked process: a new CLONE_NEWNS namespace is created, after which all existing mounts are remounted to MS_SLAVE to disable propagation from the unit's processes

Re: [systemd-devel] Is there a way to set exit code of "systemd --system" instance?

2024-09-17 Thread Nils Kattenbeck
You can use SuccessAction=exit FailureAction=exit SuccessActionExitStatus=123 inside of a unit or invoke "systemctl exit 123" manually On Tue, Sep 17, 2024, 10:00 沙包妖梦 wrote: > I'm using "systemd --system" as PID1 inside podman container. > I need a way to make RestartPreventExitStatus of hos