From 8faab90eedbcf9fb8ef63cfd72df7f9898cec807 Mon Sep 17 00:00:00 2001 From: wojtek Date: Wed, 26 May 1999 16:08:16 +0000 Subject: [PATCH] fixes for new daemon(); Changed files: apache.init -> 1.2 --- apache.init | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/apache.init b/apache.init index 10f7986..4702c3f 100644 --- a/apache.init +++ b/apache.init @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # # Startup script for the Apache Web Server # @@ -17,17 +17,21 @@ # 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 - - - -- 2.44.0