summaryrefslogtreecommitdiff
path: root/meta-inspur/meta-fp5280g2/recipes-phosphor/power/phosphor-psu-software-manager/psu-update@.service
blob: 86d784eb0e24b8c74a665c901abfdb0566da7bf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# This service shall be started with two arguments:
#  * The PSU inventory DBus object
#  * The path of the PSU images
# E.g.
#  "psu-update@-xyz-openbmc_project-inventory-system-chassis-motherboard-powersupply0\x20-tmp-image-abcdefg.service"
# expands to
#  /usr/bin/fp5280g2-psu-update /xyz/openbmc_project/inventory/system/chassis/motherboard/powersupply0 /tmp/image/abcdefg

[Unit]
Description=Update PSU %I

[Service]
Type=oneshot
RemainAfterExit=no
Environment="ARGS=%I"
ExecStart=/usr/bin/fp5280g2-psu-update $ARGS
SyslogIdentifier=fp5280g2-psu-update