| @@ -1,26 +1,24 @@ | | | @@ -1,26 +1,24 @@ |
1 | #!@RCD_SCRIPTS_SHELL@ | | 1 | #!@RCD_SCRIPTS_SHELL@ |
2 | # | | 2 | # |
3 | # $NetBSD: apache.sh,v 1.3 2009/02/25 15:39:38 tron Exp $ | | 3 | # $NetBSD: apache.sh,v 1.4 2009/02/25 22:05:40 tron Exp $ |
4 | # | | 4 | # |
5 | # PROVIDE: apache | | 5 | # PROVIDE: apache |
6 | # REQUIRE: DAEMON | | 6 | # REQUIRE: DAEMON |
7 | # KEYWORD: shutdown | | 7 | # KEYWORD: shutdown |
8 | # | | 8 | # |
9 | # You will need to set some variables in /etc/rc.conf to start Apache: | | 9 | # You will need to set some variables in /etc/rc.conf to start Apache: |
10 | # | | 10 | # |
11 | # apache=YES | | 11 | # apache=YES |
12 | # apache_start="start" # set to "startssl" to allow HTTPS connections; | | | |
13 | # # this variable is optional | | | |
14 | | | 12 | |
15 | name="apache" | | 13 | name="apache" |
16 | | | 14 | |
17 | if [ -f /etc/rc.subr ] | | 15 | if [ -f /etc/rc.subr ] |
18 | then | | 16 | then |
19 | . /etc/rc.subr | | 17 | . /etc/rc.subr |
20 | | | 18 | |
21 | rcvar=$name | | 19 | rcvar=$name |
22 | command="@PREFIX@/sbin/httpd" | | 20 | command="@PREFIX@/sbin/httpd" |
23 | command_args="-k start" | | 21 | command_args="-k start" |
24 | pidfile="@VARBASE@/run/httpd.pid" | | 22 | pidfile="@VARBASE@/run/httpd.pid" |
25 | required_files="@PKG_SYSCONFDIR@/httpd.conf" | | 23 | required_files="@PKG_SYSCONFDIR@/httpd.conf" |
26 | extra_commands="reload" | | 24 | extra_commands="reload" |