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 |
Lei YU | 617c0b7 | 2020-02-10 16:11:47 +0800 | [diff] [blame] | 7 | # /bin/echo To update /xyz/openbmc_project/inventory/system/chassis/motherboard/powersupply0 /tmp/image/abcdefg |
Lei YU | 12c9f4c | 2019-09-11 15:08:15 +0800 | [diff] [blame] | 8 | |
| 9 | [Unit] |
| 10 | Description=Update PSU %I |
| 11 | |
| 12 | [Service] |
| 13 | Type=oneshot |
| 14 | RemainAfterExit=no |
| 15 | Environment="ARGS=%I" |
Lei YU | 617c0b7 | 2020-02-10 16:11:47 +0800 | [diff] [blame] | 16 | ExecStart=/bin/echo To update $ARGS |
| 17 | ExecStart=/bin/false |