#!/bin/bash
# SERVICENAME should match this filename
SERVICENAME=$(basename $0)
LOCKFILE="/var/lock/subsys/${SERVICENAME}"
APACHECTL=/opt/ibm/HTTPServer/bin/apachectl

# The next lines are for chkconfig on RedHat systems.
# chkconfig: 2345 98 02
# description: Starts and stops IHS 

case "$1" in
  start)
    touch $LOCKFILE 
    ;;

  stop)
    rm -f $LOCKFILE
    ;;

  *)
    echo "Usage: $0 {start|stop|status|restart}"
    exit 1
    ;;
esac

$APACHECTL "$@"
