#!/bin/ksh
#
#ident	"@(#)preinstall	1.4	04/12/08 SMI"
#
# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# variables
#Add Bug 5046754 
RUNDIR=/var/run/apache

OS_VER=`uname -r`
if [ $OS_VER = "5.10" ]
then
		if [ ! -d ${RUNDIR} ]; then
		/usr/bin/mkdir -p -m 755 ${RUNDIR}
	fi
fi
#end add

killpid=`ps -e | grep -w httpd | awk '{print $1}'`
if [ -n "$killpid" ]
then
	kill -9 $killpid  
fi

