Initial commit
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
[Unit]
|
||||
Description=Watchdog power state power hotswap
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=no
|
||||
ExecStart=/usr/sbin/kudo.sh rst hotswap
|
||||
SyslogIdentifier=phosphor-watchdog
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
[Unit]
|
||||
Description=Watchdog power state power cycle shutdown
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=no
|
||||
ExecStart=/usr/libexec/ampere-hostctrl/ampere_power_util.sh mb off
|
||||
SyslogIdentifier=phosphor-watchdog
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
[Unit]
|
||||
Description=Watchdog power state reset system
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=no
|
||||
ExecStart=/usr/libexec/ampere-hostctrl/ampere_power_util.sh mb host_reset
|
||||
SyslogIdentifier=phosphor-watchdog
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=Phosphor Watchdog
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/env phosphor-watchdog --continue --service=xyz.openbmc_project.Watchdog \
|
||||
--path=/xyz/openbmc_project/watchdog/host0 \
|
||||
--action_target=xyz.openbmc_project.State.Watchdog.Action.HardReset=phosphor-watchdog-host-reset.service \
|
||||
--action_target=xyz.openbmc_project.State.Watchdog.Action.PowerOff=phosphor-watchdog-host-poweroff.service \
|
||||
--action_target=xyz.openbmc_project.State.Watchdog.Action.PowerCycle=phosphor-watchdog-host-cycle.service \
|
||||
|
||||
# This should use state manager instead of the service files currently defined
|
||||
|
||||
SyslogIdentifier=phosphor-watchdog
|
||||
BusName=xyz.openbmc_project.Watchdog
|
||||
Type=dbus
|
||||
|
||||
[Install]
|
||||
WantedBy=basic.target
|
||||
@@ -0,0 +1,9 @@
|
||||
FILESEXTRAPATHS:prepend:kudo := "${THISDIR}/${PN}:"
|
||||
|
||||
# Remove the override to keep service running after DC cycle
|
||||
SYSTEMD_OVERRIDE:${PN}:remove:kudo = "poweron.conf:phosphor-watchdog@poweron.service.d/poweron.conf"
|
||||
SYSTEMD_SERVICE:${PN}:kudo = " phosphor-watchdog.service \
|
||||
phosphor-watchdog-host-poweroff.service \
|
||||
phosphor-watchdog-host-cycle.service\
|
||||
phosphor-watchdog-host-reset.service\
|
||||
"
|
||||
Reference in New Issue
Block a user