aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2013-11-11 12:19:02 +0000
committerJohn Crispin <john@openwrt.org>2013-11-11 12:19:02 +0000
commit3cc0f479dc2f84e856a1890de8c9ab287974083b (patch)
tree1af8940ff2f67193c2611ef1726dc0aed1b766e0 /package
parent9f3b161a57ee6e1749ba289859fc7897f566d501 (diff)
downloadupstream-3cc0f479dc2f84e856a1890de8c9ab287974083b.tar.gz
upstream-3cc0f479dc2f84e856a1890de8c9ab287974083b.tar.bz2
upstream-3cc0f479dc2f84e856a1890de8c9ab287974083b.zip
uhttp: make the service auto respawn if it crashes
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 38724
Diffstat (limited to 'package')
-rwxr-xr-xpackage/network/services/uhttpd/files/uhttpd.init1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/network/services/uhttpd/files/uhttpd.init b/package/network/services/uhttpd/files/uhttpd.init
index ce304831eb..5b7686470b 100755
--- a/package/network/services/uhttpd/files/uhttpd.init
+++ b/package/network/services/uhttpd/files/uhttpd.init
@@ -60,6 +60,7 @@ start_instance()
local listen http https interpreter indexes path
procd_open_instance
+ procd_set_param respawn
procd_set_param command "$UHTTPD_BIN" -f
append_arg "$cfg" home "-h"