corosync.service.in 786 B

12345678910111213141516171819202122232425
  1. [Unit]
  2. Description=Corosync Cluster Engine
  3. ConditionKernelCommandLine=!nocluster
  4. Requires=network-online.target
  5. After=network-online.target
  6. [Service]
  7. ExecStart=@INITWRAPPERSDIR@/corosync start
  8. ExecStop=@INITWRAPPERSDIR@/corosync stop
  9. Type=forking
  10. # The following config is for corosync with enabled watchdog service.
  11. #
  12. # When corosync watchdog service is being enabled and using with
  13. # pacemaker.service, and if you want to exert the watchdog when a
  14. # corosync process is terminated abnormally,
  15. # uncomment the line of the following Restart= and RestartSec=.
  16. #Restart=on-failure
  17. # Specify a period longer than soft_margin as RestartSec.
  18. #RestartSec=70
  19. # rewrite according to environment.
  20. #ExecStartPre=/sbin/modprobe softdog soft_margin=60
  21. [Install]
  22. WantedBy=multi-user.target