| [Unit] |
| Description=etcd - highly-available key value store |
| Documentation=https://github.com/coreos/etcd |
| After=network.target |
| Wants=network-online.target |
| |
| [Service] |
| Environment=DAEMON_ARGS= |
| Environment=ETCD_NAME=%H |
| Environment=ETCD_DATA_DIR=/var/lib/etcd/default |
| EnvironmentFile=-/etc/default/%p |
| Type=notify |
| User=etcd |
| PermissionsStartOnly=true |
| #ExecStart=/bin/sh -c "GOMAXPROCS=$(nproc) /usr/bin/etcd $DAEMON_ARGS" |
| ExecStart=/usr/local/bin/etcd $DAEMON_ARGS |
| Restart=on-abnormal |
| #RestartSec=10s |
| LimitNOFILE=65536 |
| TimeoutSec=120 |
| |
| [Install] |
| WantedBy=multi-user.target |