diff options
Diffstat (limited to 'init/corosync.service.in')
-rw-r--r-- | init/corosync.service.in | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/init/corosync.service.in b/init/corosync.service.in new file mode 100644 index 0000000..bd2a48a --- /dev/null +++ b/init/corosync.service.in @@ -0,0 +1,34 @@ +[Unit] +Description=Corosync Cluster Engine +Documentation=man:corosync man:corosync.conf man:corosync_overview +ConditionKernelCommandLine=!nocluster +Requires=network-online.target +After=network-online.target + +[Service] +EnvironmentFile=-@INITCONFIGDIR@/corosync +ExecStart=@SBINDIR@/corosync -f $COROSYNC_OPTIONS +ExecStop=@SBINDIR@/corosync-cfgtool -H --force +Type=notify + +# In typical systemd deployments, both standard outputs are forwarded to +# journal (stderr is what's relevant in the pristine corosync configuration), +# which hazards a message redundancy since the syslog stream usually ends there +# as well; before editing this line, you may want to check DefaultStandardError +# in systemd-system.conf(5) and whether /dev/log is a systemd related symlink. +StandardError=null + +# The following config is for corosync with enabled watchdog service. +# +# When corosync watchdog service is being enabled and using with +# pacemaker.service, and if you want to exert the watchdog when a +# corosync process is terminated abnormally, +# uncomment the line of the following Restart= and RestartSec=. +#Restart=on-failure +# Specify a period longer than soft_margin as RestartSec. +#RestartSec=70 +# rewrite according to environment. +#ExecStartPre=/sbin/modprobe softdog + +[Install] +WantedBy=multi-user.target |