Bug#1051843: systemd: Restart=on-failure causes OnSuccess to trigger
Michael Biebl
biebl at debian.org
Wed Sep 13 14:49:41 BST 2023
Am 13.09.23 um 15:14 schrieb Cornelius Hoffmann:
> Package: systemd
> Version: 252.12-1~deb12u1
> Severity: normal
>
> This issue was already reported upstream
> (https://github.com/systemd/systemd/issues/26903) and is already
> resolved upstream and shipped in release 254. The upstream PR for the
> fix is
> https://github.com/systemd/systemd/pull/28215.
>
> A simple testcase is creating two unit files
> ```
> # /etc/systemd/system/myservice.service
> [Unit]
> OnSuccess=mysuccess.service
> StartLimitBurst=2
> StartLimitIntervalSec=1h
>
>
> [Service]
> Type=oneshot
> ExecStart=/usr/bin/false
> Restart=on-failure
>
> # /etc/systemd/system/mysuccess.service
> [Service]
> Type=oneshot
> ExecStart=/usr/bin/true
> ```
>
> Starting myservice.service also causes mysuccess.service to be started.
> A backport of the pull request mentioned above would be nice.
>
This should be backported upstream and made available via the
v252-stable branch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20230913/1ce2b5e0/attachment.sig>
More information about the Pkg-systemd-maintainers
mailing list