aboutsummaryrefslogtreecommitdiffstats
path: root/www/apache20/files
diff options
context:
space:
mode:
authorclement <clement@FreeBSD.org>2004-06-07 22:56:53 +0800
committerclement <clement@FreeBSD.org>2004-06-07 22:56:53 +0800
commitd23013f25bb89d68e2ebfc0ea8372d8e96a8c063 (patch)
treed53363a4234c26fc018bd9c49616de814c644d2a /www/apache20/files
parentcbe40423b7d9e9a1fc6eac77cc2ddc7b5bead3b0 (diff)
downloadfreebsd-ports-gnome-d23013f25bb89d68e2ebfc0ea8372d8e96a8c063.tar.gz
freebsd-ports-gnome-d23013f25bb89d68e2ebfc0ea8372d8e96a8c063.tar.zst
freebsd-ports-gnome-d23013f25bb89d68e2ebfc0ea8372d8e96a8c063.zip
- change limits from user www to daemon class to be in sync with
apachectl - fix limits (missing eval)
Diffstat (limited to 'www/apache20/files')
-rw-r--r--www/apache20/files/apache.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/www/apache20/files/apache.sh b/www/apache20/files/apache.sh
index 0ed476f53974..15f20ae0d5d8 100644
--- a/www/apache20/files/apache.sh
+++ b/www/apache20/files/apache.sh
@@ -20,7 +20,7 @@
# just before apache starts.
# apache2_flags (str): Set to "" by default.
# Extra flags passed to start command
-# apache2limits_args (str): Default to "-e -U %%WWWOWN%%"
+# apache2limits_args (str): Default to "-e -C daemon"
# Arguments of pre-start limits run.
#
. %%RC_SUBR%%
@@ -36,7 +36,7 @@ required_files=%%PREFIX%%/etc/apache2/httpd.conf
[ -z "$apache2ssl_enable" ] && apache2ssl_enable="NO"
[ -z "$apache2_flags" ] && apache2_flags=""
[ -z "$apache2limits_enable" ] && apache2limits_enable="NO"
-[ -z "$apache2limits_args" ] && apache2limits_args="-e -U %%WWWOWN%%"
+[ -z "$apache2limits_args" ] && apache2limits_args="-e -C daemon"
load_rc_config $name
@@ -44,8 +44,9 @@ checkyesno apache2ssl_enable && \
apache2_flags="-DSSL $apache2_flags"
checkyesno apache2limits_enable && \
- start_precmd="`/usr/bin/limits ${apache2limits_args}`"
+ start_precmd="eval `/usr/bin/limits ${apache2limits_args}` 2>/dev/null"
sig_reload=SIGUSR1
+extra_commands="reload"
run_rc_command "$1"