]> git.ipfire.org Git - thirdparty/systemd.git/blob - mkosi.images/system/mkosi.extra/usr/lib/systemd/system/mkosi-check-and-shutdown.service
Merge pull request #31648 from neighbourhoodie/review-content
[thirdparty/systemd.git] / mkosi.images / system / mkosi.extra / usr / lib / systemd / system / mkosi-check-and-shutdown.service
1 # SPDX-License-Identifier: LGPL-2.1-or-later
2 [Unit]
3 Description=Check if any service failed and then shutdown the machine
4 After=multi-user.target network-online.target
5 Requires=multi-user.target
6 Wants=systemd-resolved.service systemd-networkd.service network-online.target
7 SuccessAction=exit
8 FailureAction=exit
9 # On success, exit with 123 so that we can check that we receive the actual exit code from the script on the
10 # host.
11 SuccessActionExitStatus=123
12
13 [Service]
14 Type=oneshot
15 ExecStart=/usr/lib/systemd/mkosi-check-and-shutdown.sh