summaryrefslogtreecommitdiff
path: root/system/lapsus/rc.lapsus
diff options
context:
space:
mode:
authorHeinz Wiesinger <HMWiesinger@gmx.at>2010-05-11 20:02:01 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 20:02:01 +0200
commitddce670a824a0416c17d9d5532c795b96815b548 (patch)
treed9a7a26ee35ec29f5203f221a1f131e5106a0199 /system/lapsus/rc.lapsus
parent16808fc8cf5aa630e98fff836dc6a34e3315d6ff (diff)
downloadslackbuilds-ddce670a824a0416c17d9d5532c795b96815b548.tar.gz
system/lapsus: Added to 12.0 repository
Diffstat (limited to 'system/lapsus/rc.lapsus')
-rw-r--r--system/lapsus/rc.lapsus40
1 files changed, 40 insertions, 0 deletions
diff --git a/system/lapsus/rc.lapsus b/system/lapsus/rc.lapsus
new file mode 100644
index 0000000000..a9c0c6ded7
--- /dev/null
+++ b/system/lapsus/rc.lapsus
@@ -0,0 +1,40 @@
+#!/bin/sh
+# Start/stop/restart lapsus.
+# $Id: rc.lapsus,v 1.0 2007/11/28
+# Author: Heinz Wiesinger <hmwiesinger@gmx.at>
+# ---------------------------------------------------------------------------
+
+# Start lapsus:
+lapsus_start() {
+ if [ -x /usr/sbin/lapsusd ]; then
+ echo "Starting lapsus daemon: /usr/sbin/lapsusd "
+ /usr/sbin/lapsusd
+ fi
+}
+
+# Stop lapsus:
+lapsus_stop() {
+ echo "Stopping lapsus daemon"
+ killall lapsusd 1> /dev/null 2> /dev/null
+}
+
+# Restart lapsus:
+lapsus_restart() {
+ lapsus_stop
+ sleep 1
+ lapsus_start
+}
+
+case "$1" in
+'start')
+ lapsus_start
+ ;;
+'stop')
+ lapsus_stop
+ ;;
+'restart')
+ lapsus_restart
+ ;;
+*)
+ echo "usage $0 start|stop|restart"
+esac