blob: 7c7735cce2d1edcf021b51a8ce90d111188d195b (
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
|
--- a/repmgr.conf.sample
+++ b/repmgr.conf.sample
@@ -256,23 +256,21 @@
# 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
#
-#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 = '' # Note: this overrides any value contained in the setting
# "promote_command". This is intended for systems which
|