blob: 003f4792235ebc3ec46303d80fef7aa6e68c9bf1 [file] [log] [blame]
[Unit]
Description=Phosphor Watchdog
[Service]
EnvironmentFile={envfiledir}/obmc/watchdog/host0
ExecStart=phosphor-watchdog --service=${{SERVICE}} --path=${{DEVPATH}} --watch_postcodes \
--continue --fallback_always --min_interval=${{MIN_INTERVAL}} \
--fallback_action=${{FALLBACK_ACTION}} --fallback_interval=${{FALLBACK_INTERVAL}} \
--action_target=xyz.openbmc_project.State.Watchdog.Action.HardReset=${{UNIT_HARD_RESET}} \
--action_target=xyz.openbmc_project.State.Watchdog.Action.PowerOff=${{UNIT_POWER_OFF}} \
--action_target=xyz.openbmc_project.State.Watchdog.Action.PowerCycle=${{UNIT_POWER_CYCLE}} \
# 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