blob: 06635beda69eea6edb8f6a715c84d1fcda913a17 [file] [log] [blame]
Lei YU12c9f4c2019-09-11 15:08:15 +08001# This service shall be started with two arguments:
2# * The PSU inventory DBus object
3# * The path of the PSU images
4# E.g.
5# "psu-update@-xyz-openbmc_project-inventory-system-chassis-motherboard-powersupply0\x20-tmp-image-abcdefg.service"
6# expands to
7# /usr/bin/psutils --update /xyz/openbmc_project/inventory/system/chassis/motherboard/powersupply0 /tmp/image/abcdefg
8
9[Unit]
10Description=Update PSU %I
11
12[Service]
13Type=oneshot
14RemainAfterExit=no
15Environment="ARGS=%I"
16ExecStart=/usr/bin/psutils --update $ARGS
17SyslogIdentifier=psutils