Skip to content

Commit 1ee6c5a

Browse files
authored
fix up 2264190 (ExecStartPre commands) (patroni#3395)
The ExecStartPre commands in the systemd service file don't work well with sudo, it seems better to use the "+" modifier. Close patroni#3387.
1 parent f2ebf7b commit 1ee6c5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extras/startup-scripts/patroni.service

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ EnvironmentFile=-/etc/patroni_env.conf
2323

2424
# Pre-commands to start watchdog device
2525
# Uncomment if watchdog is part of your patroni setup
26-
#ExecStartPre=-/usr/bin/sudo /sbin/modprobe softdog
27-
#ExecStartPre=-/usr/bin/sudo /bin/chown postgres /dev/watchdog
26+
#ExecStartPre=-+/sbin/modprobe softdog
27+
#ExecStartPre=-+/bin/chown postgres /dev/watchdog
2828

2929
# Start the patroni process
3030
ExecStart=/bin/patroni /etc/patroni.yml

0 commit comments

Comments
 (0)