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
master
John Crispin 2013-12-09 17:29:34 +00:00
parent c1cf0505c4
commit dba219f7c9
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
}

View File

@ -17,6 +17,7 @@
# data: arbitrary name/value pairs for detecting config changes (table)
# file: configuration files (array)
# netdev: bound network device (detects ifindex changes)
# limits: resource limits (passed to the process)
#
# No space separation is done for arrays/tables - use one function argument per command line argument
#
@ -123,7 +124,7 @@ _procd_set_param() {
local type="$1"; shift
case "$type" in
env|data)
env|data|limits)
_procd_add_table "$type" "$@"
;;
command|netdev|file|respawn)
@ -177,7 +178,7 @@ _procd_append_param() {
json_select "$type"
case "$type" in
env|data)
env|data|limits)
_procd_add_table_data "$@"
;;
command|netdev|file|respawn)