Kuiying Wang | c8153bc | 2018-11-09 16:34:33 +0800 | [diff] [blame] | 1 | [Unit] |
2 | Description=Broadcast pre host stop signal to dbus | ||||
3 | Wants=mapper-wait@-xyz-openbmc_project-state-host%i.service | ||||
4 | After=mapper-wait@-xyz-openbmc_project-state-host%i.service | ||||
5 | |||||
6 | [Service] | ||||
7 | Restart=no | ||||
8 | Type=oneshot | ||||
9 | ExecStart=/bin/sh -c "dbus-send --system --type=signal /xyz/openbmc_project/state/host0 xyz.openbmc_project.State.Host.PreHostStop" | ||||
10 | SyslogIdentifier=prehoststopsignal | ||||
11 | |||||
12 | [Install] | ||||
13 | WantedBy=obmc-host-stop-pre@%i.target | ||||
14 |