2
0
forked from Ivasoft/openwrt

netifd: enable coredumps again

got broken due procd startup. Requires procd resource limit patch.

Signed-off-by: Ulrich Weber <uw@xyne.com>

SVN-Revision: 39020
This commit is contained in:
John Crispin
2013-12-09 17:29:34 +00:00
parent 0ef939c93b
commit 31a2912cd9
2 changed files with 7 additions and 6 deletions

View File

@@ -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
}