Author: nbd
Date: 2015-09-11 18:35:17 +0200 (Fri, 11 Sep 2015)
New Revision: 46867

Modified:
   trunk/package/base-files/files/etc/sysctl.conf
   trunk/package/network/config/netifd/files/etc/init.d/network
Log:
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 <[email protected]>

Modified: trunk/package/base-files/files/etc/sysctl.conf
===================================================================
--- trunk/package/base-files/files/etc/sysctl.conf      2015-09-11 16:35:02 UTC 
(rev 46866)
+++ trunk/package/base-files/files/etc/sysctl.conf      2015-09-11 16:35:17 UTC 
(rev 46867)
@@ -1,4 +1,6 @@
 kernel.panic=3
+kernel.core.pattern=/tmp/%e.%t.%p.%s.core
+
 net.ipv4.conf.default.arp_ignore=1
 net.ipv4.conf.all.arp_ignore=1
 net.ipv4.ip_forward=1

Modified: trunk/package/network/config/netifd/files/etc/init.d/network
===================================================================
--- trunk/package/network/config/netifd/files/etc/init.d/network        
2015-09-11 16:35:02 UTC (rev 46866)
+++ trunk/package/network/config/netifd/files/etc/init.d/network        
2015-09-11 16:35:17 UTC (rev 46867)
@@ -21,7 +21,6 @@
        procd_set_param watch network.interface
        [ -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
 }
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to