summary refs log tree commit diff
path: root/services/alsa
diff options
context:
space:
mode:
Diffstat (limited to 'services/alsa')
-rwxr-xr-xservices/alsa/finish3
-rwxr-xr-xservices/alsa/run4
l---------services/alsa/supervise1
3 files changed, 8 insertions, 0 deletions
diff --git a/services/alsa/finish b/services/alsa/finish
new file mode 100755
index 0000000..84e3f81
--- /dev/null
+++ b/services/alsa/finish
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -e
+exec /usr/bin/alsactl store
diff --git a/services/alsa/run b/services/alsa/run
new file mode 100755
index 0000000..a376059
--- /dev/null
+++ b/services/alsa/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+set -e
+/usr/bin/alsactl restore
+exec chpst -b alsa pause
diff --git a/services/alsa/supervise b/services/alsa/supervise
new file mode 120000
index 0000000..30bed6b
--- /dev/null
+++ b/services/alsa/supervise
@@ -0,0 +1 @@
+/run/runit/supervise.alsa
\ No newline at end of file