aboutsummaryrefslogtreecommitdiffstats
path: root/package/uhttpd/files
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-05-03 17:19:22 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-05-03 17:19:22 +0000
commit8e9d914343967982a1a48e80000bbb09161e636c (patch)
tree16fdc5ed31d9289d5da273ff2a5700ec37c29d3c /package/uhttpd/files
parent54b34ccbc5a41e7bdbf29271dcc380715418f8c1 (diff)
downloadupstream-8e9d914343967982a1a48e80000bbb09161e636c.tar.gz
upstream-8e9d914343967982a1a48e80000bbb09161e636c.tar.bz2
upstream-8e9d914343967982a1a48e80000bbb09161e636c.zip
uhttpd: display errors in init script, code formatting changes, bump package version
SVN-Revision: 31572
Diffstat (limited to 'package/uhttpd/files')
-rwxr-xr-xpackage/uhttpd/files/uhttpd.init5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/uhttpd/files/uhttpd.init b/package/uhttpd/files/uhttpd.init
index c370f90109..d4037a1b98 100755
--- a/package/uhttpd/files/uhttpd.init
+++ b/package/uhttpd/files/uhttpd.init
@@ -108,6 +108,11 @@ start_instance()
SERVICE_PID_FILE=/var/run/uhttpd_${cfg}.pid
service_start $UHTTPD_BIN -f $UHTTPD_ARGS
+
+ # Check if daemon is running, if not then
+ # re-execute in foreground to display error.
+ sleep 1 && service_check $UHTTPD_BIN || \
+ $UHTTPD_BIN -f $UHTTPD_ARGS
}
stop_instance()