aboutsummaryrefslogtreecommitdiffstats
path: root/community/repmgr/repmgr.conf.patch
blob: 4922ff6e53af9e560422f3a9a71717fb0b1e2380 (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
36
37
--- a/repmgr.conf.sample
+++ b/repmgr.conf.sample
@@ -376,27 +376,25 @@
 # 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/current/configuration-service-commands.html
 
-#service_start_command = ''
-#service_stop_command = ''
-#service_restart_command = ''
-#service_reload_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 = '/etc/init.d/postgresql reload'
 #service_promote_command = ''		# This parameter is intended for systems which provide a
 					# package-level promote command, such as Debian's
 					# "pg_ctlcluster". *IMPORTANT*: it is *not* a substitute