]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/service.c
core/service: allow RestartForceExitStatus= for oneshot services 31149/head
authorMike Yuan <me@yhndnzj.com>
Wed, 31 Jan 2024 17:25:49 +0000 (01:25 +0800)
committerMike Yuan <me@yhndnzj.com>
Sat, 10 Feb 2024 13:19:36 +0000 (21:19 +0800)
commit189a08e83d59b912723eef73bbc0cedf06670a88
tree06b1308f42b8f3ba3066941850a91f477e2fbd30
parenta5d9df35acbaf618a4fc674a2ee06e63ed5a7a10
core/service: allow RestartForceExitStatus= for oneshot services

I think this was just overlooked in #13754, which removed
the restriction of Restart= on Type=oneshot services.
There's no reason to prevent RestartForceExitStatus=
now that Restart= has been allowed.

Closes #31148
man/systemd.service.xml
src/core/service.c
test/testsuite-23.units/testsuite-23-oneshot-restartforce.sh [new file with mode: 0755]
test/units/testsuite-23.oneshot-restart.sh