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 沙包妖梦 <gongteng524702837@xxxxxxxxx> wrote:
I'm using "systemd --system" as PID1 inside podman container.I need a way to make RestartPreventExitStatus of host service to work.Anyone ever did this?