TL
Size: a a a
TL
GG
GG
KP
GG
TL
TL
GG
cat /usr/lib/systemd/system/etcd.service
[Unit]
Description=Etcd Server
After=network.target
After=network-online.target
Wants=network-online.target
[Service]
Type=notify
WorkingDirectory=/var/lib/etcd/
EnvironmentFile=-/etc/etcd/etcd.conf
User=etcd
# set GOMAXPROCS to number of processors
ExecStart=/bin/bash -c "GOMAXPROCS=$(nproc) /usr/bin/etcd"
Restart=on-failure
LimitNOFILE=65536
[Install]
WantedBy=multi-user.target
GG
GG
TL
GG
YZ
GG
TL
GG
TL
EnvironmentFile=-/etc/etcd/etcd.conf
==> etcd.conf <==
ETCD_DATA_DIR=/var/lib/etcd
ExecStart=/bin/bash -c "GOMAXPROCS=$(nproc) /usr/bin/etcd --config-file=/etc/etcd/config.yml
==> config.yml <==
data-dir: /var/lib/etcd