summaryrefslogtreecommitdiff
path: root/package/network/config/netifd/files/etc/init.d
diff options
context:
space:
mode:
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-12-09 17:29:34 +0000
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-12-09 17:29:34 +0000
commitb0f7b1f1d27f318c65b89fe7da42ea0f9eee6601 (patch)
treef137417185643bb329a600075b59c335545c7038 /package/network/config/netifd/files/etc/init.d
parentb4fc4053d63294afbf77d1985b44a778d03af6c4 (diff)
netifd: enable coredumps again
got broken due procd startup. Requires procd resource limit patch. Signed-off-by: Ulrich Weber <uw@xyne.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39020 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/config/netifd/files/etc/init.d')
-rwxr-xr-xpackage/network/config/netifd/files/etc/init.d/network8
1 files changed, 4 insertions, 4 deletions
diff --git a/package/network/config/netifd/files/etc/init.d/network b/package/network/config/netifd/files/etc/init.d/network
index 387fdbe5dd..9427a86357 100755
--- a/package/network/config/netifd/files/etc/init.d/network
+++ b/package/network/config/netifd/files/etc/init.d/network
@@ -6,13 +6,13 @@ STOP=90
USE_PROCD=1
start_service() {
- [ -e /proc/sys/kernel/core_pattern ] && {
- ulimit -c unlimited
- echo '/tmp/%e.%p.%s.%t.core' > /proc/sys/kernel/core_pattern
- }
procd_open_instance
procd_set_param command /sbin/netifd
procd_set_param respawn
+ [ -e /proc/sys/kernel/core_pattern ] && {
+ procd_set_param limits core="unlimited"
+ echo '/tmp/%e.%p.%s.%t.core' > /proc/sys/kernel/core_pattern
+ }
procd_close_instance
}