summaryrefslogtreecommitdiffstats
path: root/target/device/valka/target_skeleton/etc/rc.d/lighttpd
diff options
context:
space:
mode:
Diffstat (limited to 'target/device/valka/target_skeleton/etc/rc.d/lighttpd')
-rwxr-xr-xtarget/device/valka/target_skeleton/etc/rc.d/lighttpd17
1 files changed, 17 insertions, 0 deletions
diff --git a/target/device/valka/target_skeleton/etc/rc.d/lighttpd b/target/device/valka/target_skeleton/etc/rc.d/lighttpd
new file mode 100755
index 000000000..97ff2f46a
--- /dev/null
+++ b/target/device/valka/target_skeleton/etc/rc.d/lighttpd
@@ -0,0 +1,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"