summaryrefslogtreecommitdiffstats
path: root/src/etc/init.d/httpd
blob: 6a3045d4be7722bb2f826a67fce45dce652618bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

case "${1}" in
	start)
		printf 'Starting httpd...'
		start-stop-daemon -S -q -n httpd -x httpd -- -h /var/www
		printf 'done.'
		;;
	stop)
		printf 'Stopping httpd... '
		start-stop-daemon -K -q -n httpd
		printf 'done.'
		;;
	restart)
		"${0}" stop
		"${0}" start
		;;
	*)
		printf 'Usage: %s {start|stop|restart}\n' "${0}"
		exit 1
		;;
esac