mirror of
https://github.com/systemd/systemd.git
synced 2024-12-26 03:22:00 +03:00
189a08e83d
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
12 lines
147 B
Bash
Executable File
12 lines
147 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
set -eux
|
|
set -o pipefail
|
|
|
|
if [[ -f "$1" ]]; then
|
|
exit 0
|
|
fi
|
|
|
|
touch "$1"
|
|
exit 2
|