]> git.pld-linux.org Git - packages/apache.git/commitdiff
fixes for new daemon();
authorwojtek <wojtek@pld.org.pl>
Wed, 26 May 1999 16:08:16 +0000 (16:08 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache.init -> 1.2

apache.init

index 10f79865dc458f679b39fc2b0bc72b496d668f36..4702c3f26f7f00934119d170248e2907d1f9f321 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 #
 # Startup script for the Apache Web Server
 #
 # Check that networking is up.
 [ "${NETWORKING}" = "no" ] && exit0
 
+# Try set service nice level
+if [ -f /etc/sysconfig/apache ]; then
+    . /etc/sysconfig/apache
+fi    
 # See how we were called.
 case "$1" in
   start)
        show Starting httpd
-       daemon +5 httpd 
+       daemon httpd 
        touch /var/lock/subsys/httpd
        ;;
   stop)
        show Shutting down httpd
        killproc httpd  
-       rm -f /var/lock/subsys/httpd /var/run/httpd.pid
+       rm -f /var/lock/subsys/httpd /var/run/httpd.pid /var/run/httpd.loc*
        ;;
   status)
        status httpd
@@ -43,6 +47,3 @@ case "$1" in
 esac
 
 exit 0
-
-
-
This page took 0.179707 seconds and 4 git commands to generate.