summaryrefslogtreecommitdiff
path: root/meta-phosphor/common/recipes-phosphor/chassis/obmc-watchdog/obmc-stop-watchdog@.service
diff options
context:
space:
mode:
Diffstat (limited to 'meta-phosphor/common/recipes-phosphor/chassis/obmc-watchdog/obmc-stop-watchdog@.service')
-rw-r--r--meta-phosphor/common/recipes-phosphor/chassis/obmc-watchdog/obmc-stop-watchdog@.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/meta-phosphor/common/recipes-phosphor/chassis/obmc-watchdog/obmc-stop-watchdog@.service b/meta-phosphor/common/recipes-phosphor/chassis/obmc-watchdog/obmc-stop-watchdog@.service
new file mode 100644
index 0000000000..2b086cf2cb
--- /dev/null
+++ b/meta-phosphor/common/recipes-phosphor/chassis/obmc-watchdog/obmc-stop-watchdog@.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Stop Watchdog%i
+Wants=mapper-wait@-org-openbmc-watchdog-host%i.service
+After=mapper-wait@-org-openbmc-watchdog-host%i.service
+Conflicts=obmc-chassis-start@%i.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart={sbindir}/mapper call /org/openbmc/watchdog/host%i org.openbmc.Watchdog stop
+
+[Install]
+WantedBy=obmc-chassis-stop@%i.target