]> Dogcows Code - chaz/chatty/blob - extra/cometd/daemoncontroller.dist
import meteord-1.06
[chaz/chatty] / extra / cometd / daemoncontroller.dist
1 #!/bin/sh
2 # description: Runs meteord
3 # chkconfig: 2345 99 00
4
5 # Source function library.
6 . /etc/init.d/functions
7
8 case "$1" in
9 'start')
10 echo -n "Starting Meteord: "
11 echo 65535 > /proc/sys/fs/file-max
12 ulimit -n 65535
13 cd /usr/local/meteor
14 sudo -u meteor ./meteord >/var/log/meteord 2>&1 &
15 echo
16 ;;
17 'stop')
18 echo -n "Stopping Meteord: "
19 killall meteord && success || failure
20 ;;
21 'reload')
22 echo -n "Reloading Meteord configuration: "
23 killall -s SIGHUP meteord && success || failure
24 ;;
25 *)
26 echo "Usage: $0 { start | stop | reload }"
27 ;;
28 esac
29 exit 0
This page took 0.030131 seconds and 4 git commands to generate.