ByConity/packages/byconity-server.service

30 lines
1.1 KiB
SYSTEMD

[Unit]
Description=ByConity Server (analytic DBMS for big data)
Requires=network-online.target
# 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
# NOTE: we leave clickhouse watchdog process enabled to be able to see OOM/SIGKILL traces in clickhouse-server.log files.
# If you wish to disable the watchdog and rely on systemd logs just add "Environment=CLICKHOUSE_WATCHDOG_ENABLE=0" line.
User=clickhouse
Group=clickhouse
Restart=always
RestartSec=30
RuntimeDirectory=byconity-server
ExecStart=/usr/bin/clickhouse server --config=/etc/byconity-server/byconity-server.xml --pid-file=/run/byconity-server/byconity-server.pid
LimitCORE=infinity
LimitNOFILE=500000
CapabilityBoundingSet=CAP_NET_ADMIN CAP_IPC_LOCK CAP_SYS_NICE CAP_NET_BIND_SERVICE CAP_DAC_READ_SEARCH
[Install]
# ClickHouse should not start from the rescue shell (rescue.target).
WantedBy=multi-user.target