Initial commit
[ta/infra-ansible.git] / roles / monitoring / templates / keepalivedmonitor.service.j2
diff --git a/roles/monitoring/templates/keepalivedmonitor.service.j2 b/roles/monitoring/templates/keepalivedmonitor.service.j2
new file mode 100644 (file)
index 0000000..dd0d355
--- /dev/null
@@ -0,0 +1,14 @@
+[Unit]
+Description=keepalived monitor 
+After=network.target
+After=keepalivedmonitoragent.service
+
+[Service]
+Type=simple
+ExecStart=/sbin/keepalived -n -l -f /etc/keepalivedmonitor/keepalivedmonitor.conf
+Restart=always
+RestartSec=3
+StartLimitInterval=0
+
+[Install]
+WantedBy=multi-user.target