blob: f3980389933a9159394c8663f8f3c986554f9068 [file] [log] [blame]
Michael Tritz1f792e02017-03-31 12:04:32 -05001[Unit]
2Description=Reboot If Enabled
Deepak Kodihallie153aeb2017-07-25 10:14:28 -05003Wants=mapper-wait@-xyz-openbmc_project-control-host0-power_restore_policy.service
4After=mapper-wait@-xyz-openbmc_project-control-host0-power_restore_policy.service
Michael Tritz1f792e02017-03-31 12:04:32 -05005Wants=mapper-wait@-xyz-openbmc_project-state-host%i.service
6After=mapper-wait@-xyz-openbmc_project-state-host%i.service
7Wants=mapper-wait@-xyz-openbmc_project-state-chassis%i.service
8After=mapper-wait@-xyz-openbmc_project-state-chassis%i.service
Andrew Geisslere4f314a2017-08-08 15:21:19 -05009After=op-reset-chassis-on@%i.service
Andrew Geisslerba096082017-08-21 13:08:13 -050010ConditionPathExists=!/run/openbmc/chassis@%i-on
Michael Tritz1f792e02017-03-31 12:04:32 -050011
12[Service]
13Restart=no
14Type=oneshot
Michael Tritzfbd81be2017-08-15 14:07:23 -050015ExecStart=/usr/bin/env phosphor-discover-system-state --host %i
16SyslogIdentifier=phosphor-discover-system-state
Michael Tritz1f792e02017-03-31 12:04:32 -050017
18[Install]
19WantedBy={SYSTEMD_DEFAULT_TARGET}