4
0

corosync.service.in 1.3 KB

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