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:
parent
6ac5aa97ec
commit
33772b5da6
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user