-
-
Save j-mcnally/2bd46d033afe793bfa1a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
#!/bin/sh -e | |
# | |
# Startup script for Red5 | |
export RED5_HOME=/usr/share/red5/ | |
start_red5="$RED5_HOME/red5-highperf.sh start" | |
stop_red5="$RED5_HOME/red5-shutdown.sh stop" | |
start() { | |
echo -n "Starting Red5: " | |
ulimit -c unlimited | |
ulimit -n 2048 | |
${start_red5} >> $RED5_HOMElog/red5.out 2>&1 & | |
echo "done." | |
} | |
stop() { | |
echo -n "Shutting down Red5: " | |
${stop_red5} | |
echo "done." | |
} | |
case "$1" in | |
start) | |
start | |
;; | |
stop) | |
stop | |
;; | |
restart) | |
stop | |
sleep 10 | |
start | |
;; | |
*) | |
echo "Usage: $0 {start|stop|restart}" | |
esac | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment