mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 08:56:15 +09:00
mkosi: Use SuccessActionExitStatus= in mkosi-check-and-shutdown.service
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user