4
0

corosync.service.in 1.3 KB

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