1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
[Unit] Description=Etcd Server After=network.target [Service] Type=notify PermissionsStartOnly=true Environment=ETCD_DATA_DIR=/var/lib/etcd Environment=ETCD_NAME=%m WorkingDirectory=/var/lib/etcd/ User=etcd ExecStart=/usr/bin/etcd Restart=on-failure LimitNOFILE=65536 [Install] WantedBy=default.target