blob: 345266c5a7c85c48699bd0cfd085f7ed709c7637 [file] [log] [blame]
Andrew Geisslerc2123532020-01-14 10:39:47 -06001[Unit]
2Description=Reboot If Enabled
Potin Laic328a4c2022-03-18 23:49:37 +08003Wants=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
Andrew Geisslerc2123532020-01-14 10:39:47 -06005Wants=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
Potin Laic328a4c2022-03-18 23:49:37 +08009Wants=mapper-wait@-xyz-openbmc_project-state-bmc0.service
10After=mapper-wait@-xyz-openbmc_project-state-bmc0.service
Andrew Geisslerc2123532020-01-14 10:39:47 -060011After=op-reset-chassis-on@%i.service
12ConditionPathExists=!/run/openbmc/chassis@%i-on
13
14[Service]
15Restart=no
16Type=oneshot
Andrew Geissler38b2e142020-05-06 14:40:34 -050017RemainAfterExit=yes
Andrew Geisslerc2123532020-01-14 10:39:47 -060018ExecStart=/usr/bin/phosphor-discover-system-state --host %i
19
20[Install]
21WantedBy=multi-user.target