mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
debian .postinst: check for running systemd (#1783)
* Use double-conversion as submodule * debian .postinst: check for running systemd
This commit is contained in:
parent
dd245101f2
commit
87e7fb48d2
2
debian/clickhouse-server-base.postinst
vendored
2
debian/clickhouse-server-base.postinst
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user