SHA256
1
0
forked from pool/etcd

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
This commit is contained in:
Richard Brown 2022-04-29 11:42:57 +00:00 committed by Git OBS Bridge
parent 318bc849a5
commit 5a7c564222
3 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Apr 28 13:35:37 UTC 2022 - Johannes Kastl <kastl@b1-systems.de>
- add variable ETCD_OPTIONS to both service unit and configuration file
this allows the user to easily add things like "--enable-v2=true"
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Apr 20 13:18:23 UTC 2022 - eroca@suse.com Wed Apr 20 13:18:23 UTC 2022 - eroca@suse.com

View File

@ -1,3 +1,7 @@
# set commandline options
# example: ETCD_OPTIONS="--enable-v2=true" to enable the v2 API
#ETCD_OPTIONS=
# [member] # [member]
ETCD_NAME=default ETCD_NAME=default
ETCD_DATA_DIR="/var/lib/etcd/default.etcd" ETCD_DATA_DIR="/var/lib/etcd/default.etcd"

View File

@ -23,7 +23,7 @@ WorkingDirectory=/var/lib/etcd/
EnvironmentFile=-/etc/sysconfig/etcd EnvironmentFile=-/etc/sysconfig/etcd
User=etcd User=etcd
# set GOMAXPROCS to number of processors # set GOMAXPROCS to number of processors
ExecStart=/bin/bash -c "GOMAXPROCS=$(nproc) /usr/sbin/etcd" ExecStart=/bin/bash -c "GOMAXPROCS=$(nproc) /usr/sbin/etcd $ETCD_OPTIONS"
Restart=on-failure Restart=on-failure
LimitNOFILE=65536 LimitNOFILE=65536
Nice=-10 Nice=-10