summaryrefslogtreecommitdiffstats
path: root/generic/etc/init.d/httpd
blob: ac426b5661e47350c27f335642bfc4ddef52d3fe (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
37
38
#!/bin/sh
#
# /etc/init.d/httpd
#
# $Id:$
#

NAME=apache2
#
# This is an workaround, if the path targets into a ramfs
#
mkdir -p @LOGPATH@

case "$1" in
    start)
            echo -n "${PREFIX}Starting $NAME: "
	    /usr/sbin/apache2 -f @APACHECONFIG@ -k start
            echo "Done"
        ;;

    stop)
            echo -n "${PREFIX}Stopping $NAME: "
	    /usr/sbin/apache2 -f @APACHECONFIG@ -k stop
            echo "Done"
        ;;

    reload)
            echo -n "${PREFIX}Restarting $NAME: "
	    /usr/sbin/apache2 -f @APACHECONFIG@ -k restart
            echo "Done"
        ;;

    *)
        echo "Usage: /etc/init.d/$NAME {start|stop|restart"
        exit 1
        ;;
esac