Lei YU | 12c9f4c | 2019-09-11 15:08:15 +0800 | [diff] [blame^] | 1 | # 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] |
| 10 | Description=Update PSU %I |
| 11 | |
| 12 | [Service] |
| 13 | Type=oneshot |
| 14 | RemainAfterExit=no |
| 15 | Environment="ARGS=%I" |
| 16 | ExecStart=/usr/bin/psutils --update $ARGS |
| 17 | SyslogIdentifier=psutils |