diff options
author | Vijay Khemka <vijaykhemka@fb.com> | 2019-11-26 23:07:32 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2019-12-09 17:12:00 +0300 |
commit | fd3aff37a9be474ce9b7b513f60ede9bc067e176 (patch) | |
tree | 851d798d0a7793c4ca362069d89f81e7d4c16959 /meta-facebook/meta-tiogapass/recipes-phosphor/watchdog/phosphor-watchdog/phosphor-watchdog-host-cycle.service | |
parent | 3112138426f3ae3761f0ac3a2581c7d80897d0a9 (diff) | |
download | openbmc-fd3aff37a9be474ce9b7b513f60ede9bc067e176.tar.xz |
meta-facebook: Add watchdog service
Added watchdog service file and also provided actionmap for
watchdog timeout.
(From meta-facebook rev: 7fd6185e1af3a3f04dcf30dc0b828f8eb5fae07a)
Change-Id: I52394f7619ad0927ee1d6aba8a9a6784302bd673
Signed-off-by: Vijay Khemka <vijaykhemka@fb.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-facebook/meta-tiogapass/recipes-phosphor/watchdog/phosphor-watchdog/phosphor-watchdog-host-cycle.service')
-rw-r--r-- | meta-facebook/meta-tiogapass/recipes-phosphor/watchdog/phosphor-watchdog/phosphor-watchdog-host-cycle.service | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta-facebook/meta-tiogapass/recipes-phosphor/watchdog/phosphor-watchdog/phosphor-watchdog-host-cycle.service b/meta-facebook/meta-tiogapass/recipes-phosphor/watchdog/phosphor-watchdog/phosphor-watchdog-host-cycle.service new file mode 100644 index 0000000000..d0580bb54b --- /dev/null +++ b/meta-facebook/meta-tiogapass/recipes-phosphor/watchdog/phosphor-watchdog/phosphor-watchdog-host-cycle.service @@ -0,0 +1,10 @@ +[Unit] +Description=Power Cycle Host Server +Requires=host-gpio.service +After=host-gpio.service + +[Service] +Type=oneshot +ExecStart=busctl set-property xyz.openbmc_project.State.Chassis /xyz/openbmc_project/state/chassis0 xyz.openbmc_project.State.Chassis RequestedPowerTransition s xyz.openbmc_project.State.Chassis.Transition.Off +ExecStart=busctl set-property xyz.openbmc_project.State.Chassis /xyz/openbmc_project/state/chassis0 xyz.openbmc_project.State.Chassis RequestedPowerTransition s xyz.openbmc_project.State.Chassis.Transition.On +SyslogIdentifier=phosphor-watchdog |