summarylogtreecommitdiffstats
path: root/pd.service
diff options
context:
space:
mode:
authorXuanwo2018-10-22 23:59:08 +0800
committerXuanwo2018-10-22 23:59:08 +0800
commit8745a77aa4f224e0054c6018463176d8ca3744fd (patch)
tree210a40b7de86ad52a7f0ca9fce5939be4b4b7075 /pd.service
downloadaur-8745a77aa4f224e0054c6018463176d8ca3744fd.tar.gz
Add tikv-pd
Diffstat (limited to 'pd.service')
-rw-r--r--pd.service20
1 files changed, 20 insertions, 0 deletions
diff --git a/pd.service b/pd.service
new file mode 100644
index 000000000000..d1993b14c0ca
--- /dev/null
+++ b/pd.service
@@ -0,0 +1,20 @@
+[Unit]
+Description=Placement driver for TiKV
+Documentation=https://github.com/pingcap/pd
+After=network.target
+
+[Service]
+PermissionsStartOnly=true
+LimitNOFILE=1048576
+LimitNPROC=512
+CapabilityBoundingSet=CAP_NET_BIND_SERVICE
+AmbientCapabilities=CAP_NET_BIND_SERVICE
+NoNewPrivileges=true
+User=pd
+WorkingDirectory=~
+ExecStart=/usr/bin/pd-server --config=/etc/pd/pd.toml
+ExecReload=/bin/kill -SIGUSR1 $MAINPID
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target