2017-11-10 13:52:23 +00:00
|
|
|
[Unit]
|
2017-11-11 00:45:19 +00:00
|
|
|
Description=ClickHouse Server (analytic DBMS for big data)
|
2020-01-08 06:13:14 +00:00
|
|
|
Requires=network-online.target
|
2021-09-11 20:11:34 +00:00
|
|
|
# NOTE: that After/Wants=time-sync.target is not enough, you need to ensure
|
|
|
|
# that the time was adjusted already, if you use systemd-timesyncd you are
|
|
|
|
# safe, but if you use ntp or some other daemon, you should configure it
|
|
|
|
# additionaly.
|
2021-09-11 13:06:28 +00:00
|
|
|
After=time-sync.target network-online.target
|
|
|
|
Wants=time-sync.target
|
2017-11-10 13:52:23 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
User=clickhouse
|
|
|
|
Group=clickhouse
|
|
|
|
Restart=always
|
|
|
|
RestartSec=30
|
2019-05-06 12:12:18 +00:00
|
|
|
RuntimeDirectory=clickhouse-server
|
|
|
|
ExecStart=/usr/bin/clickhouse-server --config=/etc/clickhouse-server/config.xml --pid-file=/run/clickhouse-server/clickhouse-server.pid
|
2022-02-06 01:44:30 +00:00
|
|
|
# Minus means that this file is optional.
|
2022-01-26 15:25:11 +00:00
|
|
|
EnvironmentFile=-/etc/default/clickhouse
|
2017-11-10 13:52:23 +00:00
|
|
|
LimitCORE=infinity
|
|
|
|
LimitNOFILE=500000
|
2022-04-02 22:26:41 +00:00
|
|
|
CapabilityBoundingSet=CAP_NET_ADMIN CAP_IPC_LOCK CAP_SYS_NICE CAP_NET_BIND_SERVICE
|
2017-11-10 13:52:23 +00:00
|
|
|
|
|
|
|
[Install]
|
2021-09-11 20:11:34 +00:00
|
|
|
# ClickHouse should not start from the rescue shell (rescue.target).
|
2017-11-10 13:52:23 +00:00
|
|
|
WantedBy=multi-user.target
|