opt/apache/apache
2006-02-24 18:42:01 +00:00

30 lines
431 B
Bash

#!/bin/sh
#
# /etc/rc.d/apache: start/stop/restart apache HTTP server
#
#START=start
START=startssl
KEY=/etc/ssl/keys/apache.key
CRT=/etc/ssl/certs/apache.crt
case $1 in
start)
if [ ! -s $KEY -o ! -s $CRT ]; then
/usr/bin/mksslcert $KEY $CRT
fi
/usr/sbin/apachectl $START
;;
stop)
/usr/sbin/apachectl stop
;;
restart)
/usr/sbin/apachectl restart
;;
*)
echo "usage: $0 [start|stop|restart]"
;;
esac
# End of file