summarylogtreecommitdiffstats
path: root/pd.service
blob: d1993b14c0ca9c34f87b0ac0b0afff79f7671c4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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