diff options
Diffstat (limited to 'meta-phosphor/recipes-phosphor/leds/phosphor-led-sysfs')
-rw-r--r-- | meta-phosphor/recipes-phosphor/leds/phosphor-led-sysfs/70-leds.rules | 1 | ||||
-rw-r--r-- | meta-phosphor/recipes-phosphor/leds/phosphor-led-sysfs/xyz.openbmc_project.led.controller@.service | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/meta-phosphor/recipes-phosphor/leds/phosphor-led-sysfs/70-leds.rules b/meta-phosphor/recipes-phosphor/leds/phosphor-led-sysfs/70-leds.rules new file mode 100644 index 0000000000..372d81293f --- /dev/null +++ b/meta-phosphor/recipes-phosphor/leds/phosphor-led-sysfs/70-leds.rules @@ -0,0 +1 @@ +SUBSYSTEM=="leds", ACTION=="add", TAG+="systemd", ENV{SYSTEMD_WANTS}+="xyz.openbmc_project.led.controller@sys-class-leds-$name" diff --git a/meta-phosphor/recipes-phosphor/leds/phosphor-led-sysfs/xyz.openbmc_project.led.controller@.service b/meta-phosphor/recipes-phosphor/leds/phosphor-led-sysfs/xyz.openbmc_project.led.controller@.service new file mode 100644 index 0000000000..c673cda66f --- /dev/null +++ b/meta-phosphor/recipes-phosphor/leds/phosphor-led-sysfs/xyz.openbmc_project.led.controller@.service @@ -0,0 +1,7 @@ +[Unit] +Description=Phosphor sysfs LED controller + +[Service] +Restart=always +ExecStart=/usr/bin/env phosphor-ledcontroller -p %f +SyslogIdentifier=phosphor-ledcontroller |