This patches the /etc/avahi/avahi-daemon.conf file, setting the rlimit-nproc 
parameter to 3.
Thepresent value for rlimit-nproc of 1 is too low and  can cause the 
avahi-daemon to refuse to start, with a message:
chroot.c: fork() failed: Resource temporarily unavailable

This patch changes the setting of rlimit-nproc to 3, the same setting as
is in the default avahi-daemon.conf file.

The issue was reported in Ticket #11039.

Signed-off-by Mike Brady <mikebr...@eircom.net>

Index: libs/avahi/files/avahi-daemon.conf
===================================================================
--- libs/avahi/files/avahi-daemon.conf  (revision 33212)
+++ libs/avahi/files/avahi-daemon.conf  (working copy)
@@ -25,4 +25,4 @@
 rlimit-fsize=0
 rlimit-nofile=30
 rlimit-stack=4194304
-rlimit-nproc=1
+rlimit-nproc=3
Index: libs/avahi/Makefile
===================================================================
--- libs/avahi/Makefile (revision 33212)
+++ libs/avahi/Makefile (working copy)
@@ -16,7 +16,7 @@
 
 PKG_NAME:=avahi
 PKG_VERSION:=0.6.31
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to