mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-29 05:00:47 +00:00
Merge pull request #3516 from proller/fix21
CLICKHOUSE-4098 Correct /etc/init.d/clickhouse-server status exit code
This commit is contained in:
commit
5ffffa321f
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