Fix for systems with systemd

This commit is contained in:
Alexey Milovidov 2021-07-02 23:02:27 +03:00
parent f16e8c3a4b
commit a879234192

View File

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