summarylogtreecommitdiffstats
path: root/tidb.service
diff options
context:
space:
mode:
authorAllen Zhong2019-02-11 14:59:40 +0800
committerAllen Zhong2019-02-11 14:59:40 +0800
commit1a24197be619e6a6468705ffae64bcd028526a76 (patch)
treeb5a6e07a993d0d728226c86cb3b84af9472aba2b /tidb.service
parent846ab3534ac86057e937078e5eb4b8f4b97b12ee (diff)
downloadaur-1a24197be619e6a6468705ffae64bcd028526a76.tar.gz
upgpkg: tidb-bin 2.1.3-1
* Use configs from tidb/tikv/tikv-pd packages
Diffstat (limited to 'tidb.service')
-rw-r--r--tidb.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/tidb.service b/tidb.service
new file mode 100644
index 000000000000..ec8fba4ec4f3
--- /dev/null
+++ b/tidb.service
@@ -0,0 +1,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