summaryrefslogtreecommitdiff
path: root/meta-phosphor/recipes-phosphor/state/files/phosphor-discover-system-state@.service
blob: 4a5e6a7e59b9ace0007289f5022ed25d4f581d1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[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
ConditionPathExists=!/run/openbmc/chassis@%i-on

[Service]
Restart=no
Type=oneshot
ExecStart=/usr/bin/env phosphor-discover-system-state --host %i
SyslogIdentifier=phosphor-discover-system-state

[Install]
WantedBy=multi-user.target