Red5 RTMP/Video Server init.d Linux Service Script


#!/bin/sh
# Red5 init.d script - j0zf 2010.1.20

export RED5_HOME=/opt/red5/

# Source function library.
. /etc/rc.d/init.d/functions

start()
{
        echo -n $"Starting Red5: "
        ${RED5_HOME}openports.sh
        daemon ${RED5_HOME}red5.sh start &
        echo
}

stop()
{
        echo -n $"Shutting down Red5: "
        ${RED5_HOME}red5-shutdown.sh stop
        echo
}

# See how we were called.
case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart|reload)
        stop
        start
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart}"
        exit 1
esac

exit 0
Joseph Frazier | Create Your Badge

This page has been visited 3,392 times since January 20th, 2010

This is an ApogeeInvent Dynamic Website