aboutsummaryrefslogtreecommitdiffstats
path: root/community/repmgr/repmgr.conf.patch
blob: ec0eff0f835adbceac781554dd0dae8742c163de (plain) (blame)
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
38
--- a/repmgr.conf.sample
+++ b/repmgr.conf.sample
@@ -78,7 +78,7 @@
 
 # stderr can be redirected to an arbitrary file:
 #
-#logfile='/var/log/repmgr/repmgr.log'
+logfile='/var/log/postgresql/repmgr.log'
 
 # event notifications can be passed to an arbitrary external program
 # together with the following parameters:
@@ -121,19 +121,17 @@
 # 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 may use the following configuration:
+# For example, to use OpenRC, you may use the following configuration:
 #
 #    # this is required when running sudo over ssh without -t:
 #    Defaults:postgres !requiretty
-#    postgres ALL = NOPASSWD: /usr/bin/systemctl stop postgresql-9.5, \
-#       /usr/bin/systemctl start postgresql-9.5, \
-#       /usr/bin/systemctl restart postgresql-9.5
+#    postgres ALL = NOPASSWD: /etc/init.d/postgresql
 #
-# service_start_command = systemctl start postgresql-9.5
-# service_stop_command = systemctl stop postgresql-9.5
-# service_restart_command = systemctl restart postgresql-9.5
-# service_reload_command = pg_ctlcluster 9.5 main reload
-# service_promote_command = pg_ctlcluster 9.5 main promote
+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 = pg_ctl reload
+# service_promote_command = pg_ctl promote
 
 # external command options