1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-27 18:55:40 +03:00

mkosi: Use SuccessActionExitStatus= in mkosi-check-and-shutdown.service

This commit is contained in:
Daan De Meyer 2023-08-04 16:27:11 +02:00
parent 6ac5aa97ec
commit 33772b5da6
2 changed files with 3 additions and 4 deletions

View File

@ -17,7 +17,3 @@ fi
# Exit with non-zero EC if the /failed-services file is not empty (we have -e set)
[[ ! -s /failed-services ]]
# On success, exit with 123 so that we can check that we receive the actual exit code from the script on the
# host.
exit 123

View File

@ -6,6 +6,9 @@ Requires=multi-user.target
Wants=systemd-resolved.service systemd-networkd.service network-online.target
SuccessAction=exit
FailureAction=exit
# On success, exit with 123 so that we can check that we receive the actual exit code from the script on the
# host.
SuccessActionExitStatus=123
[Service]
Type=oneshot