summarylogtreecommitdiffstats
path: root/tidb.service
blob: ec8fba4ec4f30500b06ef063e5351c543f1eb4c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[Unit]
Description=TiDB is a distributed HTAP database compatible with the MySQL protocol
Documentation=https://github.com/pingcap/tidb
Requires=tikv.service
After=tikv.service network.target

[Service]
User=tidb
WorkingDirectory=/var/lib/tidb
LimitNOFILE=1048576
ExecStart=/usr/bin/tidb-server --config=/etc/tidb/tidb.toml
ExecReload=/bin/kill -SIGUSR1 $MAINPID
Restart=on-failure

[Install]
WantedBy=multi-user.target