blob: 5ebe04de8cb188720b0465f07761e2942fd3e882 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#! /bin/sh
#
# $NetBSD: apache.sh,v 1.5 2000/09/13 20:06:24 jlam Exp $
#
# PROVIDE: apache
# REQUIRE: DAEMON
name="apache"
command="@PREFIX@/sbin/apachectl"
pidfile="/var/run/httpd.pid"
conffile="@PREFIX@/etc/httpd/httpd.conf"
apache_start="start"
if [ -f @PREFIX@/etc/httpd/mod_ssl.conf ]
then
# This file can reset apache_start to "startssl"
. @PREFIX@/etc/httpd/mod_ssl.conf
fi
cmd=${1:-start}
case ${cmd} in
start)
if [ -x ${command} -a -f ${conffile} ]; then
echo "Starting ${name}."
${command} ${apache_start}
fi
;;
*)
if [ -x ${command} ]; then
${command} ${cmd}
fi
;;
esac
exit 0
|