summaryrefslogtreecommitdiffstats
path: root/meta-phosphor/common/recipes-phosphor/state/files/phosphor-discover-system-state@.service
blob: 4e3439658a88c617187b0eaee969927a47ab8d2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[Unit]
Description=Reboot If Enabled
Wants=mapper-wait@-xyz-openbmc_project-control-host0-power_restore_policy.service
After=mapper-wait@-xyz-openbmc_project-control-host0-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
After=op-reset-chassis-on@%i.service

[Service]
Restart=no
Type=oneshot
ExecStart={sbindir}/phosphor-discover-system-state --host %i

[Install]
WantedBy={SYSTEMD_DEFAULT_TARGET}
OpenPOWER on IntegriCloud