blob: 2523e5caadc929ec1bdbc88dad98cdba4b675ef1 [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 Geisslerb640ec42023-01-26 14:49:02 -070011After=phosphor-reset-chassis-on@%i.service
Andrew Geisslerd0fa61c2023-01-20 13:48:59 -070012Wants=xyz.openbmc_project.Settings.service
13After=xyz.openbmc_project.Settings.service
Andrew Geisslerc2123532020-01-14 10:39:47 -060014ConditionPathExists=!/run/openbmc/chassis@%i-on
15
16[Service]
17Restart=no
18Type=oneshot
Andrew Geissler38b2e142020-05-06 14:40:34 -050019RemainAfterExit=yes
Andrew Geisslerc2123532020-01-14 10:39:47 -060020ExecStart=/usr/bin/phosphor-discover-system-state --host %i
21
22[Install]
23WantedBy=multi-user.target