/[meteor]/googlecode.com/svn/trunk/daemoncontroller.dist
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /googlecode.com/svn/trunk/daemoncontroller.dist

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3 by andrew.betts, Mon Nov 20 17:59:30 2006 UTC revision 6 by andrew.betts, Tue Nov 21 09:49:07 2006 UTC
# Line 1  Line 1 
1  #!/bin/sh  #!/bin/sh
2  # description: Runs meteord  # description: Runs meteord
3  # chkconfig: 2345 99 00  # chkconfig: 2345 99 00
4    
5  # Source function library.  # Source function library.
6  . /etc/init.d/functions  . /etc/init.d/functions
7    
8  case "$1" in  case "$1" in
9  'start')  'start')
10  echo -n "Starting Meteord: "  echo -n "Starting Meteord: "
11  echo 65535 > /proc/sys/fs/file-max  echo 65535 > /proc/sys/fs/file-max
12  ulimit -n 65535  ulimit -n 65535
13  cd /usr/local/meteor  cd /usr/local/meteor
14  sudo -u meteor ./meteord >/var/log/meteord 2>&1 &  sudo -u meteor ./meteord >/var/log/meteord 2>&1 &
15  echo  echo
16  ;;  ;;
17  'stop')  'stop')
18  echo -n "Stopping Meteord: "  echo -n "Stopping Meteord: "
19  killall meteord && success || failure  killall meteord && success || failure
20  ;;  ;;
21  'reload')  'reload')
22  echo -n "Reloading Meteord configuration: "  echo -n "Reloading Meteord configuration: "
23  killall -s SIGHUP meteord && success || failure  killall -s SIGHUP meteord && success || failure
24  ;;  ;;
25  *)  *)
26  echo "Usage: $0 { start | stop | reload }"  echo "Usage: $0 { start | stop | reload }"
27  ;;  ;;
28  esac  esac
29  exit 0  exit 0

Legend:
Removed from v.3  
changed lines
  Added in v.6

  ViewVC Help
Powered by ViewVC 1.1.26