This assumes you are able to start, stop, and restart your IBM IHS admin server using the apachectl 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.
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/apachectl -k start $2 ;; stop) /opt/IBM/IHS/bin/apachectl -k stop $2 ;; *) echo "/opt/IBM/IHS/bin/apachectl -k start|stop" ;; esac
The service command should now be able to be used to start or stop the web server.
service ibm-ihs-web-server start service ibm-ihs-web-server stop
Multiple web servers
Let's say you have two (or more) httpd.conf files, like this.
Include the -f conf/example.conf parameter.
service ibm-ihs-web-server start "-f conf/foo.conf"