summaryrefslogtreecommitdiff
path: root/systemd
diff options
context:
space:
mode:
Diffstat (limited to 'systemd')
-rw-r--r--systemd/led-boot.service10
-rw-r--r--systemd/led-ready.service10
-rw-r--r--systemd/led-reboot.service10
-rw-r--r--systemd/led-shutdown.service11
4 files changed, 41 insertions, 0 deletions
diff --git a/systemd/led-boot.service b/systemd/led-boot.service
new file mode 100644
index 0000000..5112f8b
--- /dev/null
+++ b/systemd/led-boot.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=ledctl to indicate boot in progress status.
+After=local-fs.target
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/ledctl boot
+
+[Install]
+WantedBy=multi-user.target
diff --git a/systemd/led-ready.service b/systemd/led-ready.service
new file mode 100644
index 0000000..79544ed
--- /dev/null
+++ b/systemd/led-ready.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=ledctl indicate ready status
+After=multi-user.target
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/ledctl ready
+
+[Install]
+WantedBy=graphical.target
diff --git a/systemd/led-reboot.service b/systemd/led-reboot.service
new file mode 100644
index 0000000..4214d9c
--- /dev/null
+++ b/systemd/led-reboot.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=ledctl to indicate reboot in progress status.
+DefaultDependencies=no
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/ledctl boot
+
+[Install]
+WantedBy=reboot.target
diff --git a/systemd/led-shutdown.service b/systemd/led-shutdown.service
new file mode 100644
index 0000000..07fc163
--- /dev/null
+++ b/systemd/led-shutdown.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=ledctl to indicate shut down status.
+DefaultDependencies=no
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/ledctl off
+
+[Install]
+WantedBy=halt.target shutdown.target
+