|
rpm-build |
3ee90c |
[Unit]
|
|
rpm-build |
3ee90c |
Description=Pacemaker Remote executor daemon
|
|
rpm-build |
3ee90c |
Documentation=man:pacemaker-remoted
|
|
rpm-build |
3ee90c |
Documentation=https://clusterlabs.org/pacemaker/doc/en-US/Pacemaker/2.0/html-single/Pacemaker_Remote/index.html
|
|
rpm-build |
3ee90c |
|
|
rpm-build |
3ee90c |
# See main pacemaker unit file for descriptions of why these are needed
|
|
rpm-build |
3ee90c |
After=network.target
|
|
rpm-build |
3ee90c |
After=time-sync.target
|
|
rpm-build |
3ee90c |
After=dbus.service
|
|
rpm-build |
3ee90c |
Wants=dbus.service
|
|
rpm-build |
3ee90c |
After=resource-agents-deps.target
|
|
rpm-build |
3ee90c |
Wants=resource-agents-deps.target
|
|
rpm-build |
3ee90c |
After=syslog.service
|
|
rpm-build |
3ee90c |
After=rsyslog.service
|
|
rpm-build |
3ee90c |
|
|
rpm-build |
3ee90c |
[Install]
|
|
rpm-build |
3ee90c |
Alias=pacemaker-remote.service
|
|
rpm-build |
3ee90c |
WantedBy=multi-user.target
|
|
rpm-build |
3ee90c |
|
|
rpm-build |
3ee90c |
[Service]
|
|
rpm-build |
3ee90c |
Type=simple
|
|
rpm-build |
3ee90c |
KillMode=process
|
|
rpm-build |
3ee90c |
NotifyAccess=none
|
|
rpm-build |
3ee90c |
EnvironmentFile=-@CONFIGDIR@/pacemaker
|
|
rpm-build |
3ee90c |
EnvironmentFile=-@CONFIGDIR@/sbd
|
|
rpm-build |
3ee90c |
|
|
rpm-build |
3ee90c |
# Not actually success, but fatal failure -- this ensures no respawn
|
|
rpm-build |
3ee90c |
SuccessExitStatus=100
|
|
rpm-build |
3ee90c |
|
|
rpm-build |
3ee90c |
ExecStart=@sbindir@/pacemaker-remoted
|
|
rpm-build |
3ee90c |
|
|
rpm-build |
3ee90c |
# Systemd v227 and above can limit the number of processes spawned by a
|
|
rpm-build |
3ee90c |
# service. That is a bad idea for an HA cluster resource manager, so disable it
|
|
rpm-build |
3ee90c |
# by default. The administrator can create a local override if they really want
|
|
rpm-build |
3ee90c |
# a limit. If your systemd version does not support TasksMax, and you want to
|
|
rpm-build |
3ee90c |
# get rid of the resulting log warnings, comment out this option.
|
|
rpm-build |
3ee90c |
TasksMax=infinity
|
|
rpm-build |
3ee90c |
|
|
rpm-build |
3ee90c |
# If connected to the cluster and when the service functions properly, it will
|
|
rpm-build |
3ee90c |
# wait to exit until the cluster notifies it all resources on the remote node
|
|
rpm-build |
3ee90c |
# have been stopped. The default of 30min should cover most typical cluster
|
|
rpm-build |
3ee90c |
# configurations, but it may need an increase to adapt to local conditions
|
|
rpm-build |
3ee90c |
# (e.g. a large, clustered database could conceivably take longer to stop).
|
|
rpm-build |
3ee90c |
TimeoutStopSec=30min
|
|
rpm-build |
3ee90c |
TimeoutStartSec=30s
|
|
rpm-build |
3ee90c |
|
|
rpm-build |
3ee90c |
# Restart options include: no, on-success, on-failure, on-abort or always
|
|
rpm-build |
3ee90c |
Restart=on-failure
|
|
rpm-build |
3ee90c |
|
|
rpm-build |
3ee90c |
# crm_perror() writes directly to stderr, so ignore it here
|
|
rpm-build |
3ee90c |
# to avoid double-logging with the wrong format
|
|
rpm-build |
3ee90c |
StandardError=null
|