29 lines
703 B
Plaintext
29 lines
703 B
Plaintext
![]() |
[Unit]
|
||
|
Description=etcd - highly-available key value store
|
||
|
Documentation=https://etcd.io
|
||
|
Documentation=man:etcd
|
||
|
After=network.target
|
||
|
Wants=network-online.target
|
||
|
|
||
|
[Service]
|
||
|
Environment=DAEMON_ARGS=""
|
||
|
Environment=ETCD_CONFIG_FILE={{taskserv.conf_path}}
|
||
|
#Environment=ETCD_NAME=%H
|
||
|
Environment=ETCD_DATA_DIR={{taskserv.data_dir}}
|
||
|
#EnvironmentFile=-/etc/default/%p
|
||
|
#EnvironmentFile=-/etc/etcd/env
|
||
|
Type=notify
|
||
|
User=etcd
|
||
|
PermissionsStartOnly=true
|
||
|
#ExecStart=/bin/sh -c "GOMAXPROCS=$(nproc) /usr/local/bin/etcd $DAEMON_ARGS"
|
||
|
ExecStart=/usr/local/bin/etcd $DAEMON_ARGS
|
||
|
#Restart=on-abnormal
|
||
|
Restart=always
|
||
|
RestartSec=10s
|
||
|
#LimitNOFILE=65536
|
||
|
LimitNOFILE=4000
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|
||
|
Alias=etcd.service
|