summaryrefslogtreecommitdiffstats
path: root/target/device/valka/target_skeleton/etc/rc.d/lighttpd
blob: 97ff2f46ac950fd94563c0b6a1b78b890db26d0d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
. /etc/rc.subr

start() {
 	echo -n " * Starting lighttpd: "
	if ${lighttpd_program} ${lighttpd_flags}; then
		echo "Ok"
	else
		echo "Failed"
	fi
}
stop() {
	echo " * Stopping lighttpd..."
	killpid "${lighttpd_pidfile}"
}

rc_run_command "$1" "lighttpd"