Siebel Installation Guide for UNIX: Servers, Mobile Web Clients, Tools > Installing the Siebel Gateway Name Server >

Configuring the Siebel Gateway for Automatic Start


If, during installation, you elected automatic restart of the Siebel Gateway Name Server, you need to complete the procedure that follows to enable it.

NOTE:  The process should be run as the user who installed the Siebel Gateway Name Server.

To configure the Siebel Gateway Name Server for Autostart on HP-UX

  1. Log on as root to the machine on which the Siebel Gateway Name Server was installed.
  2. Copy the file siebel_server to the /sbin/init.d directory, as follows:

    cp $SIEBEL_ROOT/bin/siebel_server /sbin/init.d

    where:

    $SIEBEL_ROOT = The full path to the Siebel root directory

  3. If you have not already done so, using any text editor, edit /sbin/init.d/siebel_server and replace $SIEBEL_GATEWAY_ROOT with the actual path to the Siebel Gateway Name Server installation directory.
  4. Set the appropriate permissions by executing the following command:

    chmod 755 /sbin/init.d/siebel_server

  5. Create a soft link to /sbin/rc3.d/S720siebel_server from /sbin/init.d/siebel_server by executing the following command:

    ln -s /sbin/init.d/siebel_server /sbin/rc3.d/S720siebel_server

  6. Create a soft link to /sbin/rc2.d/K320siebel_server from /sbin/init.d/siebel_server by executing the following command:

    ln -s /sbin/init.d/siebel_server /sbin/rc2.d/K320siebel_server

    If Siebel Gateway Name Server was installed as a nonroot user, continue with Step 7; otherwise, you have completed this process.

  7. Create or edit /etc/init.d/siebel to add the following line:

    /usr/bin/su - SIEBEL_ACCOUNT -c "/sbin/init.d/siebel_server $1"

    where:

    SIEBEL_ACCOUNT = The user account installing Siebel applications

  8. Remove /sbin/rc3.d/S720siebel_server and /sbin/rc2.d/K320siebel_server, if they already exist.
  9. Execute the following commands:

    chmod 755 /sbin/init.d/siebel

    ln -s /sbin/init.d/siebel /sbin/rc3.d/S720siebel

    ln -s /sbin/init.d/siebel /sbin/rc2.d/K320siebel

To configure the Siebel Gateway Name Server for Autostart on Solaris

  1. Log on as root to the machine on which the Siebel Gateway Name Server was installed.
  2. Copy the file siebel_server to the /etc/init.d directory, as follows:

    cp $SIEBEL_HOME/bin/siebel_server /etc/init.d

    where:

    $SIEBEL_HOME = The full path to the Siebel root directory

  3. Using any text editor, edit /etc/init.d/siebel_server so that $SIEBEL_GATEWAY_ROOT is pointing to the actual path to the Siebel Gateway Name Server installation directory.
  4. Set the appropriate permissions by executing the following command:

    chmod 755 /etc/init.d/siebel_server

  5. Create a soft link to /etc/rc3.d/S72siebel from /etc/init.d/siebel_server by executing the following command.

    ln -s /etc/init.d/siebel_server /etc/rc3.d/S72siebel

  6. Create a soft link to /etc/rc2.d/K32siebel from /etc/init.d/siebel_server by executing the following command:

    ln -s /etc/init.d/siebel_server /etc/rc2.d/K32siebel

    If Siebel Gateway Name Server was installed as a nonroot user, continue with Step 7; otherwise, you have completed this process.

  7. Create or edit /etc/init.d/siebel to add the following line:

    /usr/bin/su - SIEBEL_ACCOUNT -c "/etc/init.d/siebel_server $1"

    where:

    SIEBEL_ACCOUNT = The user account installing Siebel applications

  8. Remove /etc/rc3.d/S72siebel and /etc/rc2.d/K32siebel, if they already exist.
  9. Execute the following commands:

    chmod 755 /etc/init.d/siebel

    ln -s /etc/init.d/siebel /etc/rc3.d/S72siebel

    ln -s /etc/init.d/siebel /etc/rc2.d/K32siebel

To configure the Siebel Gateway Name Server for Autostart on AIX

  1. Log on as root to the machine on which the Siebel Gateway Name Server was installed.
  2. Execute the following command on a single line:

    mkitab "sieb_gtwyns:2:wait:su - SIEBEL_ACCOUNT -c \"$SIEBEL_HOME/bin/siebel_server start\""

    where:

    SIEBEL_ACCOUNT = The user account installing Siebel product

    $SIEBEL_HOME = The installation directory for the Siebel Gateway Name Server

  3. Verify if the file /etc/rc.shutdown exists. If it does not exist, create it and change the permissions:

    touch /etc/rc.shutdown
    chmod 744 /etc/rc.shutdown

  4. Edit the file /etc/rc.shutdown by adding the following command to it:

    su - SIEBEL_ACCOUNT -c "$SIEBEL_HOME/bin/siebel_server stop"

    where:

    SIEBEL_ACCOUNT = The user account installing Siebel product

    $SIEBEL_HOME = The installation directory for the Siebel Gateway Name Server

  5. Save and close the file.

You have now enabled the Siebel Gateway Name Server to start automatically when you restart your server and to stop automatically when you shut down.

NOTE:  Remember that the Siebel Gateway Name Server must be the first service to start up, and the last to be shut down, among all the servers in the Siebel Enterprise served by that Siebel Gateway Name Server.

  1. You are now ready to proceed with the Siebel Server installation.
Siebel Installation Guide for UNIX: Servers, Mobile Web Clients, Tools