corosync.service.in 1.2 KB

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