action.skip

Configuring the Management Server to Run as a System Daemon

To have the management server start automatically when your system boots up

  1. Create a file called mgmtserver containing the following and entering your installation directory:
    INSTALL_DIR=<enter installation directory>
    BIN_DIR=$INSTALL_DIR/managementserver/bin
    case "$1" in
    start)
    echo "Starting Verastream Management Server"
    $BIN_DIR/server start
    
    RETVAL=0
    ;;
    stop)
    echo "Stopping Verastream Management Server"
    $BIN_DIR/server stop
    
    RETVAL=0
    ;;
    status) echo "Current Verastream Management Server status"
    $BIN_DIR/server status
    
    RETVAL=0
    ;;
    restart) echo "Restart Verastream Management Server"
    echo "-- stopping management server --"
    $BIN_DIR/server stop
    echo "-- starting management server --"
    $BIN_DIR/server start
    
    RETVAL=0
    ;;
    *)
    echo "Usage: $0 {start|stop|status|restart}"
    RETVAL=1
    ;;
    esac
    exit $RETVAL</code>
    
  2. Then, complete the following steps
    1. Copy the file to the /etc/init.d directory
    2. Set the file permission. Run chmod using the value 755. For example, chmod 755 mgmtserver
    3. Run chkconfig to add the initialization script. For example, chkconfig --add mgmtserver