From 2264190e79bac988c36c2acf887907c4d7c280e9 Mon Sep 17 00:00:00 2001 From: Srikanth Date: Fri, 26 Oct 2018 12:25:01 +0530 Subject: [PATCH] Add pre-command to start watchdog (#835) Add `ExecStartPre` commands to systemd unit to help start watchdog devices. --- extras/startup-scripts/patroni.service | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/extras/startup-scripts/patroni.service b/extras/startup-scripts/patroni.service index 153ad2bd..fb23ad95 100644 --- a/extras/startup-scripts/patroni.service +++ b/extras/startup-scripts/patroni.service @@ -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