#!/bin/ksh ################################################# # ihs - start/stop the apache server # J. David Schronce ################################################# APACHE_HOME=/usr/IBMIHS USAGE="Start, Stop or Restart the IBMIHS Server\n$0 start/stop/restart" if [ $# -eq 0 ]; then echo $USAGE; exit fi if [[ $LOGNAME != "root" ]]; then echo "Only executalbr by 'root'" exit fi cd $APACHE_HOME/bin case $1 in start) ./apachectl start;; stop) ./apachectl stop;; restart) ./apachectl restart;; *) echo $USAGE; exit ;; esac