iopsys-feed/crashlog/files/etc/init.d/corelog
Kenneth Johansson c9f8a17880 crashlog: catch and store any code dump file.
store the core on the crashlog server.
2015-09-17 19:26:27 +02:00

11 lines
169 B
Bash
Executable file

#!/bin/sh /etc/rc.common
START=01
start()
{
if [ -e /proc/sys/kernel/core_pattern ]
then
echo "|/sbin/logcore %e %s" > /proc/sys/kernel/core_pattern
fi
}