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

Annotation of /googlecode.com/svn/trunk/init-script

Parent Directory Parent Directory | Revision Log Revision Log


Revision 29 - (hide annotations)
Wed Oct 10 22:18:30 2007 UTC (16 years, 6 months ago) by andrew.betts
File size: 601 byte(s)
Internet Explorer onunload handler

1 andrew.betts 29 #!/bin/sh
2     # description: Runs meteord
3     # chkconfig: 2345 99 00
4    
5     # Source function library.
6     . /etc/rc.d/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     ;;
16     'stop')
17     echo -n "Stopping Meteord: "
18     killall meteord && success || failure
19     ;;
20     'reload')
21     echo -n "Reloading Meteord configuration: "
22     killall -s SIGHUP meteord && success || failure
23     ;;
24     *)
25     echo "Usage: $0 { start | stop | reload }"
26     ;;
27     esac
28     exit 0
29    

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26