blob: a8cf04f7e84d214823f820ffc8c8cf36e70afa9a (
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
39
40
41
42
43
44
|
#!/bin/sh
#
# /etc/init.d/apache2
#
NAME=apache2
#
# This is an workaround, if the path targets into a ramfs
#
mkdir -p @LOGPATH@
case "$1" in
start)
echo -n "Starting $NAME: "
if /usr/sbin/apache2 -f @APACHECONFIG@ -k start; then
echo "Done"
else
echo "Failed"
fi
;;
stop)
echo -n "Stopping $NAME: "
if /usr/sbin/apache2 -f @APACHECONFIG@ -k stop; then
echo "Done"
else
echo "Failed"
fi
;;
restart)
echo -n "Restarting $NAME: "
if /usr/sbin/apache2 -f @APACHECONFIG@ -k restart; then
echo "Done"
else
echo "Failed"
fi
;;
*)
echo "Usage: /etc/init.d/$NAME {start|stop|restart}"
exit 1
;;
esac
|