Add pre-command to start watchdog (#835)

Add `ExecStartPre` commands to systemd unit to help start watchdog devices.
This commit is contained in:
Srikanth
2018-10-26 07:55:01 +01:00
committed by Alexander Kukushkin
parent f70edefc65
commit 2264190e79
+7 -1
View File
@@ -18,8 +18,14 @@ WorkingDirectory=~
# Where to send early-startup messages from the server
# This is normally controlled by the global default set by systemd
# StandardOutput=syslog
#StandardOutput=syslog
# Pre-commands to start watchdog device
# Uncomment if watchdog is part of your patroni setup
#ExecStartPre=-/usr/bin/sudo /sbin/modprobe softdog
#ExecStartPre=-/usr/bin/sudo /bin/chown postgres /dev/watchdog
# Start the patroni process
ExecStart=/bin/patroni /etc/patroni.yml
# Send HUP to reload from patroni.yml