1[Unit]
2Description=Reboot If Enabled
3Wants=mapper-wait@-xyz-openbmc_project-control-host%i-power_restore_policy.service
4After=mapper-wait@-xyz-openbmc_project-control-host%i-power_restore_policy.service
5Wants=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
9Wants=mapper-wait@-xyz-openbmc_project-state-bmc0.service
10After=mapper-wait@-xyz-openbmc_project-state-bmc0.service
11After=op-reset-chassis-on@%i.service
12ConditionPathExists=!/run/openbmc/chassis@%i-on
13
14[Service]
15Restart=no
16Type=oneshot
17RemainAfterExit=yes
18ExecStart=/usr/bin/phosphor-discover-system-state --host %i
19
20[Install]
21WantedBy=multi-user.target
22