Merge pull request #25921 from ClickHouse/a-fix-for-systemd

Fix for systems with systemd
This commit is contained in:
Maksim Kita 2021-07-03 14:50:05 +03:00 committed by GitHub
commit 38d1ce310d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,7 +93,7 @@ forcestop()
service_or_func() service_or_func()
{ {
if [ -x "/bin/systemctl" ] && [ -f /etc/systemd/system/clickhouse-server.service ] && [ -d /run/systemd/system ]; then if [ -x "/bin/systemctl" ] && [ -f /etc/systemd/system/clickhouse-server.service ] && [ -d /run/systemd/system ]; then
service $PROGRAM $1 systemctl $1 $PROGRAM
else else
$1 $1
fi fi