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