dev-db/etcd: add an install section to the systemd service unit
authorZac Medico <zmedico@gentoo.org>
Sat, 24 Oct 2015 02:15:51 +0000 (19:15 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 24 Oct 2015 02:16:12 +0000 (19:16 -0700)
Package-Manager: portage-2.2.23

dev-db/etcd/files/etcd.service

index 8c4663d03234e065eeccc2d1032c80bdc372c77b..6823777066d67fdba1b4ad0a7ee9d5a78e8721e7 100644 (file)
@@ -1,11 +1,17 @@
 [Unit]
-Description=etcd
+Description=Etcd Server
+After=network.target
 
 [Service]
-User=etcd
+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=always
-RestartSec=10s
+Restart=on-failure
+LimitNOFILE=65536
+
+[Install]
+WantedBy=default.target