corosync.service.in 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. [Unit]
  2. Description=Corosync Cluster Engine
  3. Documentation=man:corosync man:corosync.conf man:corosync_overview
  4. ConditionKernelCommandLine=!nocluster
  5. Requires=network-online.target
  6. After=network-online.target
  7. StopWhenUnneeded=yes
  8. [Service]
  9. EnvironmentFile=-@INITCONFIGDIR@/corosync
  10. ExecStart=@SBINDIR@/corosync -f $COROSYNC_OPTIONS
  11. Type=notify
  12. # In typical systemd deployments, both standard outputs are forwarded to
  13. # journal (stderr is what's relevant in the pristine corosync configuration),
  14. # which hazards a message redundancy since the syslog stream usually ends there
  15. # as well; before editing this line, you may want to check DefaultStandardError
  16. # in systemd-system.conf(5) and whether /dev/log is a systemd related symlink.
  17. StandardError=null
  18. # The following config is for corosync with enabled watchdog service.
  19. #
  20. # When corosync watchdog service is being enabled and using with
  21. # pacemaker.service, and if you want to exert the watchdog when a
  22. # corosync process is terminated abnormally,
  23. # uncomment the line of the following Restart= and RestartSec=.
  24. #Restart=on-failure
  25. # Specify a period longer than soft_margin as RestartSec.
  26. #RestartSec=70
  27. # rewrite according to environment.
  28. #ExecStartPre=/sbin/modprobe softdog
  29. [Install]
  30. WantedBy=multi-user.target