summarylogtreecommitdiffstats
path: root/pd.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 /pd.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 'pd.service')
-rw-r--r--pd.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/pd.service b/pd.service
new file mode 100644
index 000000000000..e6acde5a5394
--- /dev/null
+++ b/pd.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Placement driver for TiKV
+Documentation=https://github.com/pingcap/pd
+After=network.target
+
+[Service]
+User=pd
+ExecStart=/usr/bin/pd-server --config=/etc/pd/pd.toml
+ExecReload=/bin/kill -SIGUSR1 $MAINPID
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target