Skip to content
Snippets Groups Projects
Commit 803c7edc authored by Felix Fietkau's avatar Felix Fietkau
Browse files

netifd: if core dump support is enabled, use it. also add some delay after...

netifd: if core dump support is enabled, use it. also add some delay after start to avoid race conditions with other init scripts

SVN-Revision: 28611
parent 88327269
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,12 @@ PIDFILE=/var/run/netifd.pid ...@@ -4,7 +4,12 @@ PIDFILE=/var/run/netifd.pid
start() { start() {
stop stop
[ -e /proc/sys/kernel/core_pattern ] && {
ulimit -c unlimited
echo '/tmp/%e.%p.%s.%t.core' > /proc/sys/kernel/core_pattern
}
start-stop-daemon -S -b -m -p $PIDFILE -x /sbin/netifd start-stop-daemon -S -b -m -p $PIDFILE -x /sbin/netifd
sleep 1
} }
reload() { reload() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment