apache-kafka: Treat exit code 143 as success.

JVMs exit with exit code 128+signal when receiving a (terminating)
signal. This means graceful termination of a JVM will result in 143, so
add that to `SuccessExitStatus` in systemd service unit.
This commit is contained in:
Ragnar Dahlén 2015-05-28 10:52:50 +01:00
parent 4c01e6d919
commit 9f25762d29

View file

@ -143,6 +143,7 @@ in {
'';
User = "apache-kafka";
PermissionsStartOnly = true;
SuccessExitStatus = "0 143";
};
preStart = ''
mkdir -m 0700 -p ${concatStringsSep " " cfg.logDirs}