blob: 7872ce69f2fdb0adc17de5b16afe237f9c1e520a [file] [log] [blame]
Gunnar Millsc238b652017-07-10 15:49:43 -05001[Unit]
2Description=Phosphor GPIO %I Presence
3Wants=mapper-wait@-xyz-openbmc_project-inventory.service
4After=mapper-wait@-xyz-openbmc_project-inventory.service
5ConditionPathExists={envfiledir}/obmc/gpio/phosphor-power-supply-%i.conf
6
7[Service]
8EnvironmentFile={envfiledir}/obmc/gpio/phosphor-power-supply-%i.conf
9ExecStart={sbindir}/phosphor-gpio-presence --path=${{PATH}} --inventory=${{INVENTORY}} --key=${{KEY}} --name=${{NAME}}
10
11[Install]
12RequiredBy={SYSTEMD_DEFAULT_TARGET}