ThuBaNguyen | 2f95214 | 2021-07-05 13:32:26 +0700 | [diff] [blame] | 1 | [Unit] |
2 | Description=Ampere Computing LLC force reset host%i | ||||
3 | Wants=phosphor-reboot-host@%i.service | ||||
4 | Conflicts=obmc-chassis-poweroff@%i.target | ||||
5 | OnFailure=obmc-chassis-powerreset@%i.target | ||||
6 | |||||
7 | [Service] | ||||
8 | RemainAfterExit=no | ||||
9 | Type=oneshot | ||||
10 | ExecStart=/bin/sh -c "sleep 3 && /usr/bin/env ampere_power_util.sh mb force_reset" | ||||
11 | SyslogIdentifier=ampere_power_util.sh | ||||
12 | |||||
13 | [Install] | ||||
14 | WantedBy=obmc-host-force-warm-reboot@%i.target |