Configuring the Management Server to Run as a System Daemon
To have the management server start automatically when your system boots up
- Create a file called
mgmtservercontaining 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> - Then, complete the following steps
- Copy the file to the
/etc/init.ddirectory - Set the file permission. Run
chmodusing the value 755. For example,chmod 755 mgmtserver - Run
chkconfigto add the initialization script. For example,chkconfig --add mgmtserver
- Copy the file to the