mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 23:12:32 +00:00
base-files: set kernel.core_pattern in sysctl.conf
Move the pattern setting from netifd's service script to /etc/sysctl.conf. Put the timestamp component '%t' just after executable name '%e' for more natural order from output of ls command. Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com> SVN-Revision: 46867
This commit is contained in:
parent
9b3b58b380
commit
ced2b641e2
@ -1,4 +1,6 @@
|
|||||||
kernel.panic=3
|
kernel.panic=3
|
||||||
|
kernel.core.pattern=/tmp/%e.%t.%p.%s.core
|
||||||
|
|
||||||
net.ipv4.conf.default.arp_ignore=1
|
net.ipv4.conf.default.arp_ignore=1
|
||||||
net.ipv4.conf.all.arp_ignore=1
|
net.ipv4.conf.all.arp_ignore=1
|
||||||
net.ipv4.ip_forward=1
|
net.ipv4.ip_forward=1
|
||||||
|
@ -21,7 +21,6 @@ start_service() {
|
|||||||
procd_set_param watch network.interface
|
procd_set_param watch network.interface
|
||||||
[ -e /proc/sys/kernel/core_pattern ] && {
|
[ -e /proc/sys/kernel/core_pattern ] && {
|
||||||
procd_set_param limits core="unlimited"
|
procd_set_param limits core="unlimited"
|
||||||
echo '/tmp/%e.%p.%s.%t.core' > /proc/sys/kernel/core_pattern
|
|
||||||
}
|
}
|
||||||
procd_close_instance
|
procd_close_instance
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user