1 2 3 4 5 6 7 8 9 10 11 12 13 14
[Unit] Description=Stop Host Requires=host-gpio.service After=host-gpio.service Conflicts=obmc-chassis-power-on@0.target [Service] RemainAfterExit=yes Type=oneshot ExecStart=/usr/bin/env poweroff.sh SyslogIdentifier=poweroff.sh [Install] WantedBy=obmc-chassis-power-off@0.target