summaryrefslogtreecommitdiffstats
path: root/www/apache13-fp/files/patch-ak
blob: 905ae48ce8d161853345183a2bfcfb78fe474869 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
--- 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'
 #
+# shared object search path
+LD_LIBRARY_PATH=
+export LD_LIBRARY_PATH
+#
 # a command that outputs a formatted text version of the HTML at the
 # url given on the command line.  Designed for lynx, however other
 # programs may work.  
@@ -39,6 +43,8 @@
 # --------------------                              --------------------
 # ||||||||||||||||||||   END CONFIGURATION SECTION  ||||||||||||||||||||
 
+eval `limits -e -C daemon` >/dev/null 2>&1
+
 ERROR=0
 ARGV="$@"
 if [ "x$ARGV" = "x" ] ; then 
@@ -75,6 +81,30 @@
 	    ERROR=3
 	fi
 	;;
+    startfp|fpstart|start-FP)
+        if [ $RUNNING -eq 1 ]; then
+            echo "$0 $ARG: httpd (pid $PID) already running"
+            continue
+        fi
+        if $HTTPD -DFRONTPAGE; then
+            echo "$0 $ARG: httpd started"
+        else
+            echo "$0 $ARG: httpd could not be started"
+            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 +112,7 @@
 	fi
 	if kill $PID ; then
 	    echo "$0 $ARG: httpd stopped"
+	    rm $PIDFILE
 	else
 	    echo "$0 $ARG: httpd could not be stopped"
 	    ERROR=4
@@ -153,6 +184,8 @@
 	cat <<EOF
 
 start      - start httpd
+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
OpenPOWER on IntegriCloud