aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2006-08-10 19:51:42 +0800
committerache <ache@FreeBSD.org>2006-08-10 19:51:42 +0800
commit9645d44c4e7f2b3ec3aebc8657d654c000b16c61 (patch)
tree53c8764a478c9c86ee59cebceab983f320f04544 /www
parentf5e4cf27f13c5e3f116c987b3cd0f8e59339568b (diff)
downloadfreebsd-ports-gnome-9645d44c4e7f2b3ec3aebc8657d654c000b16c61.tar.gz
freebsd-ports-gnome-9645d44c4e7f2b3ec3aebc8657d654c000b16c61.tar.zst
freebsd-ports-gnome-9645d44c4e7f2b3ec3aebc8657d654c000b16c61.zip
Use more rcNG compatible method for limits(1)
PR: 101746
Diffstat (limited to 'www')
-rw-r--r--www/apache13/Makefile1
-rw-r--r--www/apache13/files/apache.sh4
2 files changed, 3 insertions, 2 deletions
diff --git a/www/apache13/Makefile b/www/apache13/Makefile
index 79efe5981abe..1e8c938fc12f 100644
--- a/www/apache13/Makefile
+++ b/www/apache13/Makefile
@@ -7,6 +7,7 @@
PORTNAME= apache
PORTVERSION= 1.3.37
+PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_APACHE_HTTPD}
DISTNAME= apache_${PORTVERSION}
diff --git a/www/apache13/files/apache.sh b/www/apache13/files/apache.sh
index 304192b651c2..7e96fe89a2dd 100644
--- a/www/apache13/files/apache.sh
+++ b/www/apache13/files/apache.sh
@@ -26,7 +26,7 @@ command="%%PREFIX%%/sbin/httpd"
load_rc_config $name
pidfile="${apache_pidfile}"
-
-start_cmd="echo \"Starting ${name}.\"; /usr/bin/limits -U www ${command} ${apache_flags} ${command_args}"
+start_precmd="`/usr/bin/limits -e -U www`"
+start_postcmd="`/usr/bin/limits -e -C daemon`"
run_rc_command "$1"