Bootstrap FreeKB - IBM IHS Web Server - Start IBM IHS Admin Server using the service command
IBM IHS Web Server - Start IBM IHS Admin Server using the service command

Updated:   |  IBM IHS Web Server articles

An IBM IHS Admin Server is used to facilitate communication between WebSphere and an IHS web server. Typically, the Admin Server is used to start or stop an IHS Web Server, and to propagate the Web Server Plugin configuration file (plugin-cfg.xml) from the WebSphere deployment manager to the IHS web server.

 

This assumes you are able to start, stop, and restart your IBM IHS admin server using the adminctl command.

Use the ps command to ensure your system is using init.

ps -ef | head -2
UID         PID   PPID  C STIME TTY          TIME CMD
root          1      0  0 Mar01 ?        00:06:58 /sbin/init

 

If your system is using init, create a file in the /etc/rc.d/init.d directory. You can give the file any name you would like.

touch /etc/rc.d/init.d/ibm-ihs-admin-server

 

Update the file to contain the following.

#! /bin/bash
#
# chkconfig: 345 96 06
# description: IBM IHS Admin Server

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

case $1 in
  start)
    /opt/IBM/IHS/bin/adminctl -k start
    ;;
  stop)
    /opt/IBM/IHS/bin/adminctl -k stop
    ;;
  *)
    echo "/opt/IBM/IHS/bin/adminctl -k start|stop"
    ;;
esac

 

The service command should now be able to be used to start or stop the admin server.

service ibm-ihs-admin-server start
service ibm-ihs-admin-server stop

 

 


Multiple admin servers

Let's say you have two (or more) admin.conf files, like this.

/opt/IBM/IHS/conf/admin1.conf
/opt/IBM/IHS/conf/admin2.conf

 

Update the file to contain the following.

#! /bin/bash
#
# chkconfig: 345 96 06
# description: IBM IHS Admin Server

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

case $1 in
  start)
    /opt/IBM/IHS/bin/adminctl -k start -f conf/admin$2.conf
    ;;
  stop)
    /opt/IBM/IHS/bin/adminctl -k stop  -f conf/admin$2.conf
    ;;
  *)
    echo "/opt/IBM/IHS/bin/adminctl -k start|stop -f conf/admin$2.conf"
    ;;
esac



Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 20a4ff in the box below so that we can be sure you are a human.