]> Dogcows Code - chaz/chatty/blobdiff - extra/cometd/daemoncontroller.dist
import meteord-1.06
[chaz/chatty] / extra / cometd / daemoncontroller.dist
diff --git a/extra/cometd/daemoncontroller.dist b/extra/cometd/daemoncontroller.dist
new file mode 100644 (file)
index 0000000..5370a26
--- /dev/null
@@ -0,0 +1,29 @@
+#!/bin/sh
+# description: Runs meteord
+# chkconfig: 2345 99 00
+
+# Source function library.
+. /etc/init.d/functions
+
+case "$1" in
+'start')
+echo -n "Starting Meteord: "
+echo 65535 > /proc/sys/fs/file-max
+ulimit -n 65535
+cd /usr/local/meteor
+sudo -u meteor ./meteord >/var/log/meteord 2>&1 &
+echo
+;;
+'stop')
+echo -n "Stopping Meteord: "
+killall meteord && success || failure
+;;
+'reload')
+echo -n "Reloading Meteord configuration: "
+killall -s SIGHUP meteord && success || failure
+;;
+*)
+echo "Usage: $0 { start | stop | reload }"
+;;
+esac
+exit 0
This page took 0.016338 seconds and 4 git commands to generate.