summaryrefslogtreecommitdiffstats
path: root/app-misc/lcdproc/files/lcdproc
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/lcdproc/files/lcdproc')
-rw-r--r--app-misc/lcdproc/files/lcdproc21
1 files changed, 21 insertions, 0 deletions
diff --git a/app-misc/lcdproc/files/lcdproc b/app-misc/lcdproc/files/lcdproc
new file mode 100644
index 0000000..95e7ba7
--- /dev/null
+++ b/app-misc/lcdproc/files/lcdproc
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/lcdproc/files/lcdproc,v 1.10 2004/07/14 21:32:56 agriffis Exp $
+
+depend(){
+ need LCDd
+}
+start() {
+ source /etc/lcdproc.conf
+ ebegin "Starting lcdproc"
+ start-stop-daemon --start --background \
+ --exec /usr/bin/lcdproc -- ${SCREENS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping lcdproc"
+ start-stop-daemon --stop --exec /usr/bin/lcdproc
+ eend $?
+}