Initial commit

This commit is contained in:
Your Name
2026-04-23 17:07:55 +08:00
commit b7e39e063b
16725 changed files with 1625565 additions and 0 deletions
@@ -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
@@ -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
@@ -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
@@ -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\
"