mirror of
https://github.com/systemd/systemd.git
synced 2024-12-28 11:21:59 +03:00
24acd4064e
This should, hopefully, catch issues like systemd/systemd#21671 automagically.
15 lines
497 B
Desktop File
15 lines
497 B
Desktop File
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
[Unit]
|
|
Description=Check if any service failed and then shutdown the machine
|
|
After=multi-user.target network-online.target
|
|
Requires=multi-user.target
|
|
Wants=systemd-resolved.service systemd-networkd.service network-online.target
|
|
OnFailure=poweroff.target
|
|
OnFailureJobMode=replace-irreversibly
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStartPre=-rm -f /failed-services
|
|
ExecStart=/usr/lib/systemd/mkosi-check-and-shutdown.sh
|
|
ExecStartPost=systemctl poweroff --no-block
|