[systemd-devel] Antw: [EXT] Skip ExecStop after service end or failure
Ulrich Windl
Ulrich.Windl at rz.uni-regensburg.de
Mon Jan 4 10:41:47 UTC 2021
>>> Robert Dahlem <Robert.Dahlem at gmx.net> schrieb am 20.12.2020 um 12:48 in
Nachricht <ccf33b87-b030-5d61-a340-50e33709dc04 at gmx.net>:
> Hi,
>
> is there a way to NOT run ExecStop, when a service started successfully,
> but ends later without being stopped?
>
> My scenario: I have an ExecStop that should only run after
>
> systemctl stop XXX.service
>
> which means: only when someone administratively shuts down the service.
>
> It must not run, when the service terminates by whatever means (exit 0,
> exit 1, signal). In this case, systemd shall just mark the service as
> failed and leave it be.
>
> Can this be configured?
What should the status be then? Started?
>
> Regards,
> Robert
> _______________________________________________
> systemd‑devel mailing list
> systemd‑devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/systemd‑devel
More information about the systemd-devel
mailing list