Configuring the Session Server to Run as a System Daemon

To have installed services start automatically when your system boots up

Command line options Description
atstart -d -d before other options logs debugging info
atstart -install <component> install component as a daemon process
atstart -uninstall <component> uninstall the daemon process
atstart -start <component> start the daemon process
atstart -stop <component> stop the daemon process
atstart -status <component> display current status of component

Start and stop "all" starts or stops all five services and -status displays the status of all five components. For example:

alpjanw03:/opt/microfocus/verastream/hostintegrator/bin # ./atstart -status
LogMgr      Started 
Server      Started 
HostEmul    Started 
MgmtServer  Started 
WebServer   Started
  1. Create a file called vhi containing the following and entering your installation directory:

    These instructions will start all services, including the management server if it is installed. To start a particular service, replace the parameters (<component>) with one of the following:

    ### BEGIN INIT INFO
    # Provides: VHI
    # Required-Start: $network
    # Should-Start: $network
    # Required-Stop: $network
    # Should-Stop: $network
    # Default-Start: 3 5
    # Default-Stop: 0 1 2 4 6
    # Description: Micro Focus Verastream Host Integrator Services
    ### END INIT INFO
    	
    INSTALL_DIR=<enter installation directory>
    BIN_DIR=$INSTALL_DIR/hostintegrator/bin
    case "$1" in
    start)
    echo "Starting Verastream"
    $BIN_DIR/atstart -start all
    
    RETVAL=0
    ;;
    stop)
    echo "Stopping Verastream"
    $BIN_DIR/atstart -stop all
    
    RETVAL=0
    ;;
    status) echo "Current Verastream status"
    $BIN_DIR/atstart -status
    
    RETVAL=0
    ;;
    restart) echo "Restart Verastream"
    echo "-- stopping all components --"
    $BIN_DIR/atstart -stop all
    echo "-- starting all components --"
    $BIN_DIR/atstart -start all
    
    RETVAL=0
    ;;
    *)
    echo "Usage: $0 {start|stop|status|restart}"
    RETVAL=1
    ;;
    esac
    
    exit $RETVAL
  2. On Linux platforms, follow these 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 vhi
    3. Run chkconfig to add the initialization script. For example, chkconfig --add vhi

Additional notes

Related Topics
Bullet Removing a Session Server from a Cluster
Bullet Adding a Session Server
Bullet Working with Host Integrator Session Servers