blob: 345266c5a7c85c48699bd0cfd085f7ed709c7637 [file] [log] [blame]
[Unit]
Description=Reboot If Enabled
Wants=mapper-wait@-xyz-openbmc_project-control-host%i-power_restore_policy.service
After=mapper-wait@-xyz-openbmc_project-control-host%i-power_restore_policy.service
Wants=mapper-wait@-xyz-openbmc_project-state-host%i.service
After=mapper-wait@-xyz-openbmc_project-state-host%i.service
Wants=mapper-wait@-xyz-openbmc_project-state-chassis%i.service
After=mapper-wait@-xyz-openbmc_project-state-chassis%i.service
Wants=mapper-wait@-xyz-openbmc_project-state-bmc0.service
After=mapper-wait@-xyz-openbmc_project-state-bmc0.service
After=op-reset-chassis-on@%i.service
ConditionPathExists=!/run/openbmc/chassis@%i-on
[Service]
Restart=no
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/phosphor-discover-system-state --host %i
[Install]
WantedBy=multi-user.target