CLICKHOUSE-4098 Correct /etc/init.d/clickhouse-server status exit code

This commit is contained in:
proller 2018-11-01 16:47:52 +03:00
parent bcab45b3fc
commit 10e604428a

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