Michael Tritz | 1f792e0 | 2017-03-31 12:04:32 -0500 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Reboot If Enabled |
Deepak Kodihalli | e153aeb | 2017-07-25 10:14:28 -0500 | [diff] [blame] | 3 | Wants=mapper-wait@-xyz-openbmc_project-control-host0-power_restore_policy.service |
| 4 | After=mapper-wait@-xyz-openbmc_project-control-host0-power_restore_policy.service |
Michael Tritz | 1f792e0 | 2017-03-31 12:04:32 -0500 | [diff] [blame] | 5 | Wants=mapper-wait@-xyz-openbmc_project-state-host%i.service |
| 6 | After=mapper-wait@-xyz-openbmc_project-state-host%i.service |
| 7 | Wants=mapper-wait@-xyz-openbmc_project-state-chassis%i.service |
| 8 | After=mapper-wait@-xyz-openbmc_project-state-chassis%i.service |
Andrew Geissler | e4f314a | 2017-08-08 15:21:19 -0500 | [diff] [blame] | 9 | After=op-reset-chassis-on@%i.service |
Andrew Geissler | ba09608 | 2017-08-21 13:08:13 -0500 | [diff] [blame] | 10 | ConditionPathExists=!/run/openbmc/chassis@%i-on |
Michael Tritz | 1f792e0 | 2017-03-31 12:04:32 -0500 | [diff] [blame] | 11 | |
| 12 | [Service] |
| 13 | Restart=no |
| 14 | Type=oneshot |
Michael Tritz | fbd81be | 2017-08-15 14:07:23 -0500 | [diff] [blame] | 15 | ExecStart=/usr/bin/env phosphor-discover-system-state --host %i |
| 16 | SyslogIdentifier=phosphor-discover-system-state |
Michael Tritz | 1f792e0 | 2017-03-31 12:04:32 -0500 | [diff] [blame] | 17 | |
| 18 | [Install] |
| 19 | WantedBy={SYSTEMD_DEFAULT_TARGET} |