summaryrefslogtreecommitdiff
path: root/meta-phosphor/recipes-core/systemd/obmc-targets/obmc-host-reboot@.target
diff options
context:
space:
mode:
Diffstat (limited to 'meta-phosphor/recipes-core/systemd/obmc-targets/obmc-host-reboot@.target')
-rw-r--r--meta-phosphor/recipes-core/systemd/obmc-targets/obmc-host-reboot@.target10
1 files changed, 10 insertions, 0 deletions
diff --git a/meta-phosphor/recipes-core/systemd/obmc-targets/obmc-host-reboot@.target b/meta-phosphor/recipes-core/systemd/obmc-targets/obmc-host-reboot@.target
new file mode 100644
index 0000000000..dc280ea653
--- /dev/null
+++ b/meta-phosphor/recipes-core/systemd/obmc-targets/obmc-host-reboot@.target
@@ -0,0 +1,10 @@
+[Unit]
+Description=Reboot Host%i
+Wants={SYSTEMD_DEFAULT_TARGET}
+After={SYSTEMD_DEFAULT_TARGET}
+Wants=mapper-wait@-org-openbmc-control-chassis%i.service
+After=mapper-wait@-org-openbmc-control-chassis%i.service
+Conflicts=obmc-host-startmin@%i.target
+RefuseManualStop=yes
+OnFailure=obmc-chassis-poweroff@%i.target
+OnFailureJobMode=flush