Просмотр исходного кода

systemd: Config example for corosync wd service

Signed-off-by: Kazunori INOUE <kazunori.inoue3@gmail.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
Kazunori INOUE 11 лет назад
Родитель
Сommit
f6d6a9b0a0
1 измененных файлов с 12 добавлено и 0 удалено
  1. 12 0
      init/corosync.service.in

+ 12 - 0
init/corosync.service.in

@@ -9,5 +9,17 @@ ExecStart=@INITWRAPPERSDIR@/corosync start
 ExecStop=@INITWRAPPERSDIR@/corosync stop
 Type=forking
 
+# The following config is for corosync with enabled watchdog service.
+#
+#  When corosync watchdog service is being enabled and using with
+#  pacemaker.service, and if you want to exert the watchdog when a
+#  corosync process is terminated abnormally,
+#  uncomment the line of the following Restart= and RestartSec=.
+#Restart=on-failure
+#  Specify a period longer than soft_margin as RestartSec.
+#RestartSec=70
+#  rewrite according to environment.
+#ExecStartPre=/sbin/modprobe softdog soft_margin=60
+
 [Install]
 WantedBy=multi-user.target