blob: 5a7a64f421a46cebb22e3db6cf9d58ff18704a88 [file] [log] [blame]
Andrew Geisslerc2123532020-01-14 10:39:47 -06001[Unit]
Patrick Williams8e9f24d2024-02-23 19:21:03 -06002Description=Reboot Host %i 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
Delphine CC Chiu1901ab72024-05-09 15:33:58 +080014After=multi-user.target
Andrew Geisslerc2123532020-01-14 10:39:47 -060015ConditionPathExists=!/run/openbmc/chassis@%i-on
16
17[Service]
18Restart=no
Andrew Geisslerb0986c02023-05-31 13:37:51 -040019Type=simple
Andrew Geissler38b2e142020-05-06 14:40:34 -050020RemainAfterExit=yes
Andrew Geisslerc2123532020-01-14 10:39:47 -060021ExecStart=/usr/bin/phosphor-discover-system-state --host %i
22
23[Install]
24WantedBy=multi-user.target