summaryrefslogtreecommitdiffstats
path: root/tools/crm_mon.service.in
diff options
context:
space:
mode:
Diffstat (limited to 'tools/crm_mon.service.in')
-rw-r--r--tools/crm_mon.service.in17
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/crm_mon.service.in b/tools/crm_mon.service.in
new file mode 100644
index 0000000..7ae6649
--- /dev/null
+++ b/tools/crm_mon.service.in
@@ -0,0 +1,17 @@
+[Unit]
+Description=Daemon for pacemaker monitor
+Documentation=man:crm_mon
+After=pacemaker.service
+
+[Service]
+Type=forking
+EnvironmentFile=-@CONFIGDIR@/crm_mon
+ExecStart=@sbindir@/crm_mon $OPTIONS
+Restart=always
+
+# crm_perror() writes directly to stderr, so ignore it here to avoid
+# double-logging with the wrong format
+StandardError=null
+
+[Install]
+WantedBy=multi-user.target