aboutsummaryrefslogtreecommitdiffstats
path: root/community/repmgr/repmgrd.initd
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-09-20 02:30:24 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-09-20 02:30:53 +0200
commit07624af11c2ad2c6da1901025ac24e48a751c169 (patch)
tree9041d1c8ba54491c466b52ab0aab916ea5fce356 /community/repmgr/repmgrd.initd
parent6331c4ac4c98464f6f1c8c9dd27967e4966ffd13 (diff)
downloadaports-07624af11c2ad2c6da1901025ac24e48a751c169.tar.bz2
aports-07624af11c2ad2c6da1901025ac24e48a751c169.tar.xz
community/repmgr: move from testing
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
+}