Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > d265f71d7fce441fd72dd0a77d0f8893 > files > 7

apache-ssl-1.3.41_1.59-1mdv2010.0.i586.rpm

#!/bin/sh
#
# Startup script for the Apache-SSL Web Server
#
# chkconfig: 345 85 15
# description: Apache-SSL is a World Wide Web server.  It is used to serve \
#	       HTML files and CGI.
# processname: httpsd
# pidfile: /var/run/httpsd/httpsd.pid
# config: /etc/httpsd/conf/httpsd.conf

# Source function library.
. /etc/rc.d/init.d/functions

# See how we were called.
case "$1" in
  start)
	gprintf "Starting httpsd: "
	daemon httpsd
	echo
	touch /var/lock/subsys/httpsd
	;;
  stop)
	gprintf "Shutting down httpsd: "
	killproc httpsd
#	kill -9 `pidof /usr/sbin/gcache`
	echo
	rm -f /var/lock/subsys/httpsd
	rm -f /var/run/httpsd/httpsd.pid
	;;
  status)
	status httpsd
	;;
  restart|reload)
	$0 stop
	$0 start
	;;
  *)
	gprintf "Usage: %s {start|stop|restart|reload|status}\n" "$0"
	exit 1
esac

exit 0