summaryrefslogtreecommitdiff
path: root/www/apache2/files/apache.sh
diff options
context:
space:
mode:
Diffstat (limited to 'www/apache2/files/apache.sh')
-rw-r--r--www/apache2/files/apache.sh58
1 files changed, 0 insertions, 58 deletions
diff --git a/www/apache2/files/apache.sh b/www/apache2/files/apache.sh
deleted file mode 100644
index 0cde9e57094..00000000000
--- a/www/apache2/files/apache.sh
+++ /dev/null
@@ -1,58 +0,0 @@
-#!@RCD_SCRIPTS_SHELL@
-#
-# $NetBSD: apache.sh,v 1.9 2005/04/18 14:35:57 tron Exp $
-#
-# PROVIDE: apache
-# REQUIRE: DAEMON
-# KEYWORD: shutdown
-#
-# You will need to set some variables in /etc/rc.conf to start Apache:
-#
-# apache=YES
-# apache_start="start" # set to "startssl" to allow HTTPS connections;
-# # this variable is optional
-
-if [ -f /etc/rc.subr ]
-then
- . /etc/rc.subr
-fi
-
-name="apache"
-rcvar=$name
-command="@PREFIX@/sbin/httpd"
-ctl_command="@PREFIX@/sbin/apachectl"
-required_files="@PKG_SYSCONFDIR@/httpd.conf"
-extra_commands="reload"
-start_cmd="apache_doit start"
-stop_cmd="apache_doit stop"
-reload_cmd="apache_doit reload"
-
-apache_doit ()
-{
- : ${apache_start:=start}
-
- case $1 in
- start) action=${apache_start} ;;
- reload) action=graceful ;;
- *) action=$1 ;;
- esac
-
- if [ ! -x ${ctl_command} ]; then
- return
- fi
-
- case ${action} in
- start|startssl) @ECHO@ "Starting ${name}." ;;
- stop) @ECHO@ "Stopping ${name}." ;;
- esac
-
- ${ctl_command} ${action}
-}
-
-if [ -f /etc/rc.subr -a -f /etc/rc.conf -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ]
-then
- load_rc_config $name
- run_rc_command "$1"
-else
- apache_doit "$1"
-fi