a02d8f95df
1 OBS-URL: https://build.opensuse.org/request/show/520609 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/etcd?expand=0&rev=5
22 lines
556 B
Desktop File
22 lines
556 B
Desktop File
[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
|
|
ExecStart=/bin/bash -c "GOMAXPROCS=$(nproc) /usr/sbin/etcd --name=\"${ETCD_NAME}\" --data-dir=\"${ETCD_DATA_DIR}\" --listen-client-urls=\"${ETCD_LISTEN_CLIENT_URLS}\""
|
|
Restart=on-failure
|
|
LimitNOFILE=65536
|
|
Nice=-10
|
|
IOSchedulingClass=best-effort
|
|
IOSchedulingPriority=2
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|