summaryrefslogtreecommitdiffstats
path: root/main/busybox-initscripts/httpd.initd
diff options
context:
space:
mode:
Diffstat (limited to 'main/busybox-initscripts/httpd.initd')
-rw-r--r--main/busybox-initscripts/httpd.initd20
1 files changed, 20 insertions, 0 deletions
diff --git a/main/busybox-initscripts/httpd.initd b/main/busybox-initscripts/httpd.initd
new file mode 100644
index 000000000..7f114e650
--- /dev/null
+++ b/main/busybox-initscripts/httpd.initd
@@ -0,0 +1,20 @@
+#!/sbin/runscript
+
+DAEMON=/usr/sbin/httpd
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting busybox httpd"
+ start-stop-daemon --start --exec $DAEMON -- $HTTPD_OPTS
+ eend $?
+}
+
+stop () {
+ ebegin "Stopping busybox httpd"
+ start-stop-daemon --stop --exec $DAEMON
+ eend $?
+}
+