FreeKB - IBM IHS Web Server Start Stop Restart admin server using the service command
IBM IHS Web Server - Start Stop Restart admin server using the service command

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


Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




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




Comments

Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |