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:
parent
4c01e6d919
commit
9f25762d29
1 changed files with 1 additions and 0 deletions
|
@ -143,6 +143,7 @@ in {
|
|||
'';
|
||||
User = "apache-kafka";
|
||||
PermissionsStartOnly = true;
|
||||
SuccessExitStatus = "0 143";
|
||||
};
|
||||
preStart = ''
|
||||
mkdir -m 0700 -p ${concatStringsSep " " cfg.logDirs}
|
||||
|
|
Loading…
Reference in a new issue