mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
[package] uhttpd: display errors in init script, code formatting changes, bump package version
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31572 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user