summaryrefslogtreecommitdiff
path: root/app-laptop/pbbuttonsd/files/pbbuttonsd.rc6
diff options
context:
space:
mode:
Diffstat (limited to 'app-laptop/pbbuttonsd/files/pbbuttonsd.rc6')
-rw-r--r--app-laptop/pbbuttonsd/files/pbbuttonsd.rc619
1 files changed, 19 insertions, 0 deletions
diff --git a/app-laptop/pbbuttonsd/files/pbbuttonsd.rc6 b/app-laptop/pbbuttonsd/files/pbbuttonsd.rc6
new file mode 100644
index 000000000000..ba5e167790d0
--- /dev/null
+++ b/app-laptop/pbbuttonsd/files/pbbuttonsd.rc6
@@ -0,0 +1,19 @@
+#!/sbin/openrc-run
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ use alsasound
+}
+
+start() {
+ ebegin "Starting pbbuttonsd"
+ /usr/bin/pbbuttonsd -d > /dev/null
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping pbbuttonsd"
+ start-stop-daemon --stop --quiet --exec /usr/bin/pbbuttonsd
+ eend $?
+}