mirror of https://gitee.com/bigwinds/arangodb
implement matching for non-compressed systemd corefiles
This commit is contained in:
parent
9a91e410c2
commit
016b595c6e
|
@ -488,6 +488,7 @@ function analyzeServerCrash (arangod, options, checkStr) {
|
|||
if (fs.isFile(cpf)) {
|
||||
var matchApport = /.*apport.*/;
|
||||
var matchVarTmp = /\/var\/tmp/;
|
||||
var matchSystemdCoredump = /.*systemd-coredump*/;
|
||||
var corePattern = fs.readBuffer(cpf);
|
||||
var cp = corePattern.asciiSlice(0, corePattern.length);
|
||||
|
||||
|
@ -495,7 +496,11 @@ function analyzeServerCrash (arangod, options, checkStr) {
|
|||
print(RED + "apport handles corefiles on your system. Uninstall it if you want us to get corefiles for analysis.");
|
||||
return;
|
||||
}
|
||||
if (matchVarTmp.exec(cp) == null) {
|
||||
|
||||
if (matchSystemdCoredump.exec(cp) == null) {
|
||||
options.coreDirectory = "/var/lib/systemd/coredump";
|
||||
}
|
||||
else if (matchVarTmp.exec(cp) == null) {
|
||||
print(RED + "Don't know howto locate corefiles in your system. '" + cpf + "' contains: '" + cp + "'");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue