diff options
Diffstat (limited to 'www/apache13-fp/files/patch-ak')
-rw-r--r-- | www/apache13-fp/files/patch-ak | 36 |
1 files changed, 20 insertions, 16 deletions
diff --git a/www/apache13-fp/files/patch-ak b/www/apache13-fp/files/patch-ak index 3e2dd12eba03..905ae48ce8d1 100644 --- a/www/apache13-fp/files/patch-ak +++ b/www/apache13-fp/files/patch-ak @@ -1,5 +1,5 @@ ---- src/support/apachectl.orig Tue Feb 9 12:00:34 1999 -+++ src/support/apachectl Sat Apr 3 15:40:42 1999 +--- src/support/apachectl.orig Tue Apr 6 15:36:33 1999 ++++ src/support/apachectl Mon Sep 6 13:01:08 1999 @@ -27,6 +27,10 @@ # the path to your httpd binary, including options if necessary HTTPD='/usr/local/apache/src/httpd' @@ -20,20 +20,11 @@ ERROR=0 ARGV="$@" if [ "x$ARGV" = "x" ] ; then -@@ -50,7 +56,7 @@ - # check for pidfile - if [ -f $PIDFILE ] ; then - PID=`cat $PIDFILE` -- if [ ! "x$PID" = "x" ] && kill -0 $PID; then -+ if [ ! "x$PID" = "x" ] && kill -0 $PID > /dev/null 2>&1; then - STATUS="httpd (pid $PID) running" - RUNNING=1 - else -@@ -75,6 +81,18 @@ +@@ -75,6 +81,30 @@ ERROR=3 fi ;; -+ startfp|start_frontpage|start-FP) ++ startfp|fpstart|start-FP) + if [ $RUNNING -eq 1 ]; then + echo "$0 $ARG: httpd (pid $PID) already running" + continue @@ -45,10 +36,22 @@ + ERROR=3 + fi + ;; ++ startfpssl|start-FP-SSL) ++ if [ $RUNNING -eq 1 ]; then ++ echo "$0 $ARG: httpd (pid $PID) already running" ++ continue ++ fi ++ if $HTTPD -DFRONTPAGE -DSSL; then ++ echo "$0 $ARG: httpd started" ++ else ++ echo "$0 $ARG: httpd could not be started" ++ ERROR=3 ++ fi ++ ;; stop) if [ $RUNNING -eq 0 ]; then echo "$0 $ARG: $STATUS" -@@ -82,6 +100,7 @@ +@@ -82,6 +112,7 @@ fi if kill $PID ; then echo "$0 $ARG: httpd stopped" @@ -56,11 +59,12 @@ else echo "$0 $ARG: httpd could not be stopped" ERROR=4 -@@ -153,6 +172,7 @@ +@@ -153,6 +184,8 @@ cat <<EOF start - start httpd -+startfp - start httpd with FrontPage Extentions enabled ++startfp - start httpd with Frontpage enabled ++startfpssl - start httpd with Frontpage and SSL enabled stop - stop httpd restart - restart httpd if running by sending a SIGHUP or start if not running |