2017-09-05 15:16:31 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Etcd Server
|
|
|
|
After=network.target
|
|
|
|
After=network-online.target
|
|
|
|
Wants=network-online.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=notify
|
|
|
|
WorkingDirectory=/var/lib/etcd/
|
|
|
|
EnvironmentFile=-/etc/sysconfig/etcd
|
|
|
|
User=etcd
|
|
|
|
# set GOMAXPROCS to number of processors
|
2021-04-19 10:24:42 +02:00
|
|
|
ExecStart=/bin/bash -c "GOMAXPROCS=$(nproc) /usr/sbin/etcd"
|
2017-09-05 15:16:31 +02:00
|
|
|
Restart=on-failure
|
|
|
|
LimitNOFILE=65536
|
|
|
|
Nice=-10
|
|
|
|
IOSchedulingClass=best-effort
|
|
|
|
IOSchedulingPriority=2
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|