From 10e604428a7103661143f40cf05a0173afee7b55 Mon Sep 17 00:00:00 2001 From: proller Date: Thu, 1 Nov 2018 16:47:52 +0300 Subject: [PATCH] CLICKHOUSE-4098 Correct /etc/init.d/clickhouse-server status exit code --- debian/clickhouse-server.init | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/clickhouse-server.init b/debian/clickhouse-server.init index 3c4b65a21ba..92978c72257 100755 --- a/debian/clickhouse-server.init +++ b/debian/clickhouse-server.init @@ -328,12 +328,14 @@ status() { if is_running; then echo "$PROGRAM service is running" + exit 0 else if is_cron_disabled; then echo "$PROGRAM service is stopped"; else echo "$PROGRAM: process unexpectedly terminated" fi + exit 3 fi } @@ -342,7 +344,6 @@ status() case "$1" in status) status - exit 0 ;; esac