From e28adead42dd55f23f0421aa054c7419e646b2a9 Mon Sep 17 00:00:00 2001 From: Nick Bartos Date: Tue, 5 Dec 2017 08:30:41 +1100 Subject: Contiv systemd fixes Add install section so that enable on reboot works. Make sure services are always restarted if they die. --- roles/contiv/templates/netplugin.service | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'roles/contiv/templates/netplugin.service') diff --git a/roles/contiv/templates/netplugin.service b/roles/contiv/templates/netplugin.service index dc7b95bb5..6358d89ec 100644 --- a/roles/contiv/templates/netplugin.service +++ b/roles/contiv/templates/netplugin.service @@ -6,3 +6,8 @@ After=auditd.service systemd-user-sessions.service contiv-etcd.service EnvironmentFile=/etc/default/netplugin ExecStart={{ bin_dir }}/netplugin $NETPLUGIN_ARGS KillMode=control-group +Restart=always +RestartSec=10 + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3