ensure network be up before staring clickhouse

This commit is contained in:
Zhichang Yu 2020-01-08 14:13:14 +08:00
parent 8140b2f75a
commit f56653f43e
2 changed files with 4 additions and 2 deletions

View File

@ -3,8 +3,8 @@
# Provides: clickhouse-server # Provides: clickhouse-server
# Default-Start: 2 3 4 5 # Default-Start: 2 3 4 5
# Default-Stop: 0 1 6 # Default-Stop: 0 1 6
# Required-Start: # Required-Start: $network
# Required-Stop: # Required-Stop: $network
# Short-Description: Yandex clickhouse-server daemon # Short-Description: Yandex clickhouse-server daemon
### END INIT INFO ### END INIT INFO

View File

@ -1,5 +1,7 @@
[Unit] [Unit]
Description=ClickHouse Server (analytic DBMS for big data) Description=ClickHouse Server (analytic DBMS for big data)
Requires=network-online.target
After=network-online.target
[Service] [Service]
Type=simple Type=simple