[Unit] Description=Containerized etcd for Vitastor After=network-online.target local-fs.target time-sync.target docker.service vitastor-host.service Wants=network-online.target local-fs.target time-sync.target docker.service vitastor-host.service PartOf=vitastor.target [Service] Restart=always Environment=GOGC=50 EnvironmentFile=/etc/vitastor/docker.conf EnvironmentFile=/etc/vitastor/etcd.conf SyslogIdentifier=etcd ExecStart=bash -c 'docker run --rm -i -v /var/lib/vitastor/etcd:/data \ --log-driver none --network host $CONTAINER_OPTIONS --name vitastor-etcd \ $ETCD_IMAGE /usr/local/bin/etcd --data-dir /data ExecStop=docker stop vitastor-etcd Restart=always StartLimitInterval=0 RestartSec=10 [Install] WantedBy=multi-user.target