36 lines
870 B
SYSTEMD
36 lines
870 B
SYSTEMD
|
[Unit]
|
||
|
Description=Etcd Server
|
||
|
After=network.target
|
||
|
After=network-online.target
|
||
|
Wants=network-online.target
|
||
|
|
||
|
[Service]
|
||
|
# added automatically, for details please see
|
||
|
# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
||
|
ProtectSystem=full
|
||
|
ProtectHome=true
|
||
|
PrivateDevices=true
|
||
|
ProtectHostname=true
|
||
|
ProtectClock=true
|
||
|
ProtectKernelTunables=true
|
||
|
ProtectKernelModules=true
|
||
|
ProtectKernelLogs=true
|
||
|
ProtectControlGroups=true
|
||
|
RestrictRealtime=true
|
||
|
# end of automatic additions
|
||
|
Type=notify
|
||
|
WorkingDirectory=/var/lib/etcd/
|
||
|
EnvironmentFile=-/etc/sysconfig/etcd
|
||
|
EnvironmentFile=-/etc/default/etcd
|
||
|
User=etcd
|
||
|
# set GOMAXPROCS to number of processors
|
||
|
ExecStart=/bin/bash -c "GOMAXPROCS=$(nproc) /usr/sbin/etcd $ETCD_OPTIONS"
|
||
|
Restart=on-failure
|
||
|
LimitNOFILE=65536
|
||
|
Nice=-10
|
||
|
IOSchedulingClass=best-effort
|
||
|
IOSchedulingPriority=2
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|