| [Unit] |
| Description=Send OS shutdown event to BMC |
| Documentation=man:bmc-device |
| RefuseManualStart=true |
| DefaultDependencies=no |
| Before=shutdown.target |
| ConditionFileIsExecutable=/usr/sbin/bmc-device |
|
|
| [Service] |
| Type=oneshot |
| |
| |
| Environment="STOP_EVENT=0x41 0x04 0x20 0x01 0x6f assertion 0x03 0x00 0x00" |
| ExecStart=/usr/sbin/bmc-device --platform-event=${STOP_EVENT} |
|
|
| [Install] |
| WantedBy=shutdown.target |