debian .postinst: check for running systemd (#1783)

* Use double-conversion as submodule

* debian .postinst: check for running systemd
This commit is contained in:
proller 2018-01-17 19:18:20 +03:00 committed by alexey-milovidov
parent dd245101f2
commit 87e7fb48d2

View File

@ -8,7 +8,7 @@ CLICKHOUSE_LOGDIR=/var/log/clickhouse-server
if [ "$1" = configure ]; then
if [ -x "/bin/systemctl" ] && [ -f /etc/systemd/system/clickhouse-server.service ]; then
if [ -x "/bin/systemctl" ] && [ -f /etc/systemd/system/clickhouse-server.service ] && [ -d /run/systemd/system ]; then
/bin/systemctl daemon-reload
/bin/systemctl enable clickhouse-server
else