etcd/etcd.service
Richard Brown 5a7c564222 Accepting request 973730 from home:ojkastl_buildservice:Branch_devel_kubic
add ETCD_OPTIONS to systemd unit file and configuration file, to allow the user to easily set things like '--enable-v2=true'

OBS-URL: https://build.opensuse.org/request/show/973730
OBS-URL: https://build.opensuse.org/package/show/devel:kubic/etcd?expand=0&rev=21
2022-04-29 11:42:57 +00:00

35 lines
835 B
Desktop File

[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
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