summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/lcdproc/lcdd
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2009-01-15 06:36:59 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2009-01-15 06:36:59 (GMT)
commit7309564d9f5afd0d6ef985f1eecb678c8fe7cf0d (patch)
tree147675f5690e2934e4ef6dd9bf626012a8f470b8 /abs/extra-testing/lcdproc/lcdd
parentd4c430a738c65537924be978549bf4bf311abe6b (diff)
downloadlinhes_pkgbuild-7309564d9f5afd0d6ef985f1eecb678c8fe7cf0d.zip
linhes_pkgbuild-7309564d9f5afd0d6ef985f1eecb678c8fe7cf0d.tar.gz
linhes_pkgbuild-7309564d9f5afd0d6ef985f1eecb678c8fe7cf0d.tar.bz2
Updated MySQL. Initial lcdproc intro.
Diffstat (limited to 'abs/extra-testing/lcdproc/lcdd')
-rwxr-xr-xabs/extra-testing/lcdproc/lcdd38
1 files changed, 38 insertions, 0 deletions
diff --git a/abs/extra-testing/lcdproc/lcdd b/abs/extra-testing/lcdproc/lcdd
new file mode 100755
index 0000000..a124c00
--- /dev/null
+++ b/abs/extra-testing/lcdproc/lcdd
@@ -0,0 +1,38 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+PID=`pidof -o %PPID /usr/sbin/LCDd`
+case "$1" in
+ start)
+ stat_busy "Starting LCDd daemon"
+ [ -z "$PID" ] && /usr/sbin/LCDd -c /etc/LCDd.conf
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ echo $PID > /var/run/lcdd.pid
+ add_daemon lcdd
+ stat_done
+ fi
+ ;;
+ stop)
+ stat_busy "Stopping LCDd daemon"
+ [ ! -z "$PID" ] && kill $PID &> /dev/null
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ rm /var/run/lcdd.pid
+ rm_daemon lcdd
+ stat_done
+ fi
+ ;;
+ restart)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+ *)
+ echo "usage: $0 {start|stop|restart}"
+esac
+exit 0