changeset 20945:196d7ea73bc6

master: If chrooted service's core wasn't dumped, suggest to unset the chroot.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Mon, 24 Oct 2016 12:23:49 +0300
parents 62ffcd1b9739
children a3acbf6f9b14
files src/master/service-process.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/master/service-process.c	Mon Oct 24 11:34:05 2016 +0300
+++ b/src/master/service-process.c	Mon Oct 24 12:23:49 2016 +0300
@@ -474,6 +474,11 @@
 		return;
 	}
 #endif
+	if (service->set->chroot[0] != '\0') {
+		str_printfa(str, " (core not dumped - try to clear "
+			    "service %s { chroot = } )", service->set->name);
+		return;
+	}
 
 	str_append(str, " (core not dumped)");
 #endif