#!/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