summaryrefslogtreecommitdiff
path: root/package/network
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/network
parent9f3b161a57ee6e1749ba289859fc7897f566d501 (diff)
downloadmtk-20170518-3cc0f479dc2f84e856a1890de8c9ab287974083b.zip
mtk-20170518-3cc0f479dc2f84e856a1890de8c9ab287974083b.tar.gz
mtk-20170518-3cc0f479dc2f84e856a1890de8c9ab287974083b.tar.bz2
uhttp: make the service auto respawn if it crashes
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 38724
Diffstat (limited to 'package/network')
-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 ce30483..5b76864 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"