From 0c73aa70400171c0ca352792e8e73e1015af13f3 Mon Sep 17 00:00:00 2001 From: Peter Volkov Date: Thu, 15 Sep 2011 08:55:55 +0000 Subject: =?UTF-8?q?Use=20start-stop-daemon=20to=20use=20system=20limits=20?= =?UTF-8?q?for=20apache.=20Fixes=20bug=20#347301=20by=20Diego=20Elio=20Pet?= =?UTF-8?q?ten=C3=B2.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 2.2/init/apache2.initd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '2.2') diff --git a/2.2/init/apache2.initd b/2.2/init/apache2.initd index df7374e..66f1c73 100755 --- a/2.2/init/apache2.initd +++ b/2.2/init/apache2.initd @@ -69,7 +69,7 @@ start() { [ -f /var/log/apache2/ssl_scache ] && rm /var/log/apache2/ssl_scache ebegin "Starting ${SVCNAME}" - ${APACHE2} ${APACHE2_OPTS} -k start + start-stop-daemon --start -- ${APACHE2} ${APACHE2_OPTS} -k start i=0 while [ ! -e "${PIDFILE}" ] && [ $i -lt ${TIMEOUT} ]; do @@ -84,7 +84,7 @@ stop() { checkconfd || return 1 ebegin "Stopping ${SVCNAME}" - ${APACHE2} ${APACHE2_OPTS} -k stop + start-stop-daemon --stop --pidfile ${PIDFILE} -- ${APACHE2} ${APACHE2_OPTS} -k stop i=0 while pidof "${APACHE2}" >/dev/null && [ $i -lt ${TIMEOUT} ]; do -- cgit v1.2.3