1[Unit]
2Description=NCPLite Host%i Off
3Before=obmc-chassis-hard-poweroff@%i.target
4Before=obmc-chassis-poweroff@%i.target
5Conflicts=obmc-host-startmin@%i.target
6OnFailure=obmc-chassis-poweroff@%i.target
7OnFailureJobMode=flush
8
9[Service]
10Type=oneshot
11ExecStart=@SBINDIR@/host-control gracefuloff
12ExecStartPost=/bin/sh -c "busctl call xyz.openbmc_project.Logging.IPMI \
13        /xyz/openbmc_project/Logging/IPMI \
14        xyz.openbmc_project.Logging.IPMI IpmiSelAdd ssaybq \
15        'Power Button Pressed' '/xyz/openbmc_project/state/chassis0' \
16        3 0x00 0xff 0xff true 0x0020"
17