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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux