Merge pull request #3516 from proller/fix21

CLICKHOUSE-4098 Correct /etc/init.d/clickhouse-server status exit code
This commit is contained in:
alexey-milovidov 2018-11-01 18:56:55 +03:00 committed by GitHub
commit 5ffffa321f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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