mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
CLICKHOUSE-4098 Correct /etc/init.d/clickhouse-server status exit code
This commit is contained in:
parent
bcab45b3fc
commit
10e604428a
3
debian/clickhouse-server.init
vendored
3
debian/clickhouse-server.init
vendored
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user