summaryrefslogtreecommitdiffstats
path: root/package/base-files/default/etc/init.d/S50httpd
diff options
context:
space:
mode:
Diffstat (limited to 'package/base-files/default/etc/init.d/S50httpd')
-rwxr-xr-xpackage/base-files/default/etc/init.d/S50httpd10
1 files changed, 8 insertions, 2 deletions
diff --git a/package/base-files/default/etc/init.d/S50httpd b/package/base-files/default/etc/init.d/S50httpd
index d278519e9..a05b10c09 100755
--- a/package/base-files/default/etc/init.d/S50httpd
+++ b/package/base-files/default/etc/init.d/S50httpd
@@ -1,4 +1,10 @@
-#!/bin/sh
+#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
-[ -d /www ] && httpd -p 80 -h /www -r OpenWrt
+start() {
+ [ -d /www ] && httpd -p 80 -h /www -r OpenWrt
+}
+
+stop() {
+ killall httpd
+}