Initial commit
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Start Watchdog%i
|
||||
Wants=obmc-host-started@%i.target
|
||||
After=obmc-host-started@%i.target
|
||||
Wants=mapper-wait@-xyz-openbmc_project-watchdog-host%i.service
|
||||
After=mapper-wait@-xyz-openbmc_project-watchdog-host%i.service
|
||||
Conflicts=obmc-host-stop@%i.target
|
||||
ConditionPathExists=!/run/openbmc/host@%i-on
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/bin/sh -c "busctl call `mapper get-service /xyz/openbmc_project/watchdog/host%i` /xyz/openbmc_project/watchdog/host%i org.freedesktop.DBus.Properties Set ssv xyz.openbmc_project.State.Watchdog Enabled b true"
|
||||
RemainAfterExit=yes
|
||||
SyslogIdentifier=obmc-enable-host-watchdog
|
||||
@@ -0,0 +1,4 @@
|
||||
DEVPATH=/xyz/openbmc_project/watchdog/host0
|
||||
SERVICE=xyz.openbmc_project.Watchdog
|
||||
TARGET=obmc-host-timeout@0.target
|
||||
TIMEOUT_IN_MSEC=30000
|
||||
@@ -0,0 +1,7 @@
|
||||
[Unit]
|
||||
Description=Phosphor %I watchdog
|
||||
|
||||
[Service]
|
||||
Restart=no
|
||||
EnvironmentFile={envfiledir}/obmc/watchdog/%I
|
||||
ExecStart=/usr/bin/phosphor-watchdog --continue --service=${{SERVICE}} --path=${{DEVPATH}} --target=${{TARGET}} --default_interval=${{TIMEOUT_IN_MSEC}}
|
||||
@@ -0,0 +1,4 @@
|
||||
[Unit]
|
||||
Conflicts=obmc-host-stop@0.target
|
||||
Conflicts=obmc-chassis-poweroff@0.target
|
||||
Conflicts=obmc-host-quiesce@0.target
|
||||
Reference in New Issue
Block a user