aboutsummaryrefslogtreecommitdiffstats
path: root/community/repmgr/repmgrd.initd
diff options
context:
space:
mode:
Diffstat (limited to 'community/repmgr/repmgrd.initd')
-rw-r--r--community/repmgr/repmgrd.initd12
1 files changed, 12 insertions, 0 deletions
diff --git a/community/repmgr/repmgrd.initd b/community/repmgr/repmgrd.initd
new file mode 100644
index 0000000000..46ed23f750
--- /dev/null
+++ b/community/repmgr/repmgrd.initd
@@ -0,0 +1,12 @@
+#!/sbin/openrc-run
+
+command="/usr/bin/repmgrd"
+command_background="yes"
+
+pidfile="/run/$RC_SVCNAME.pid"
+start_stop_daemon_args="--user ${user:-postgres}"
+
+depend() {
+ need postgresql
+ use net logger
+}