aboutsummaryrefslogtreecommitdiff
path: root/www/apache20
diff options
context:
space:
mode:
authorClement Laforet <clement@FreeBSD.org>2004-08-23 15:44:51 +0000
committerClement Laforet <clement@FreeBSD.org>2004-08-23 15:44:51 +0000
commit83d8251d798527677fc4ffb53da4a63db0841f33 (patch)
treea5edcaacfdf302f6bdf75e1423e0de31e96cc846 /www/apache20
parent7569b19c498dd57032e85bc43b9d4242be3b3a2f (diff)
downloadports-83d8251d798527677fc4ffb53da4a63db0841f33.tar.gz
ports-83d8251d798527677fc4ffb53da4a63db0841f33.zip
Notes
Diffstat (limited to 'www/apache20')
-rw-r--r--www/apache20/files/apache.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/www/apache20/files/apache.sh b/www/apache20/files/apache.sh
index 1fbc67d2d0a0..ff570a83a9c7 100644
--- a/www/apache20/files/apache.sh
+++ b/www/apache20/files/apache.sh
@@ -29,6 +29,8 @@ name="apache2"
rcvar=`set_rcvar`
start_precmd="apache2_precmd"
+restart_precmd="apache2_checkconfig"
+reload_precmd="apache2_checkconfig"
command="%%PREFIX%%/sbin/httpd"
pidfile="/var/run/httpd.pid"
required_files=%%PREFIX%%/etc/apache2/httpd.conf
@@ -44,6 +46,12 @@ load_rc_config $name
checkyesno apache2ssl_enable && \
apache2_flags="-DSSL $apache2_flags"
+apache2_checkconfig()
+{
+ echo "Performing sanity check on apache2 configuration:"
+ ${command} -t
+}
+
apache2_precmd()
{
if test -f %%PREFIX%%/sbin/envvars