ClickHouse/debian/clickhouse-server.service

26 lines
867 B
SYSTEMD
Raw Normal View History

[Unit]
2017-11-11 00:45:19 +00:00
Description=ClickHouse Server (analytic DBMS for big data)
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.
After=time-sync.target network-online.target
Wants=time-sync.target
[Service]
Type=simple
User=clickhouse
Group=clickhouse
Restart=always
RestartSec=30
RuntimeDirectory=clickhouse-server
ExecStart=/usr/bin/clickhouse-server --config=/etc/clickhouse-server/config.xml --pid-file=/run/clickhouse-server/clickhouse-server.pid
LimitCORE=infinity
LimitNOFILE=500000
2019-07-06 18:02:28 +00:00
CapabilityBoundingSet=CAP_NET_ADMIN CAP_IPC_LOCK CAP_SYS_NICE
[Install]
2021-09-11 20:11:34 +00:00
# ClickHouse should not start from the rescue shell (rescue.target).
WantedBy=multi-user.target