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)
|
2017-11-10 13:52:23 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
User=clickhouse
|
|
|
|
Group=clickhouse
|
2018-05-25 13:55:18 +00:00
|
|
|
PermissionsStartOnly=true
|
2017-11-10 13:52:23 +00:00
|
|
|
Restart=always
|
|
|
|
RestartSec=30
|
2018-06-20 20:18:47 +00:00
|
|
|
ExecStartPre=-/usr/bin/chown clickhouse:clickhouse -R /etc/clickhouse-server
|
|
|
|
ExecStartPre=-/bin/chown clickhouse:clickhouse -R /etc/clickhouse-server
|
2017-11-10 13:52:23 +00:00
|
|
|
ExecStart=/usr/bin/clickhouse-server --config=/etc/clickhouse-server/config.xml
|
|
|
|
LimitCORE=infinity
|
|
|
|
LimitNOFILE=500000
|
2018-11-14 01:11:13 +00:00
|
|
|
CapabilityBoundingSet=CAP_NET_ADMIN CAP_IPC_LOCK
|
2017-11-10 13:52:23 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|