aboutsummaryrefslogtreecommitdiffstats
path: root/community/repmgr/repmgr.conf.patch
blob: dda30bf9dc87c2746740b1875eec8e213d565e72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
--- a/repmgr.conf.sample
+++ b/repmgr.conf.sample
@@ -328,26 +328,24 @@
 # If you use sudo, the user repmgr runs as (usually 'postgres')  must have
 # passwordless sudo access to execute the command.
 #
-# For example, to use systemd, you can set
+# For example, to use OpenRC, you can set
 #
-#    service_start_command = 'sudo systemctl start postgresql-9.6'
+#    service_start_command = 'sudo /etc/init.d/postgresql start'
 #    (...)
 #
 # and then use the following sudoers configuration:
 #
 #    # this is required when running sudo over ssh without -t:
 #    Defaults:postgres !requiretty
-#    postgres ALL = NOPASSWD: /usr/bin/systemctl stop postgresql-9.6, \
-#       /usr/bin/systemctl start postgresql-9.6, \
-#       /usr/bin/systemctl restart postgresql-9.6
+#    postgres ALL = NOPASSWD: /etc/init.d/postgresql
 #
 # Debian/Ubuntu users: use "sudo pg_ctlcluster" to execute service control commands.
 #
 # For more details, see: https://repmgr.org/docs/4.1/configuration-service-commands.html
 
-#service_start_command = ''
-#service_stop_command = ''
-#service_restart_command = ''
+service_start_command = '/etc/init.d/postgresql start'
+service_stop_command = '/etc/init.d/postgresql stop'
+service_restart_command = '/etc/init.d/postgresql restart'
 #service_reload_command = ''
 #service_promote_command = ''		# This parameter is intended for systems which provide a
 					# package-level promote command, such as Debian's