summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Mozes <tmozes@sygic.com>2018-09-21 14:11:19 +0200
committerUltrabug <ultrabug@gentoo.org>2018-09-28 09:55:39 +0200
commit2c77e25783da444692e66820b72472c21bbeab32 (patch)
treed447259fd06b68f435328aae1f79c126fd5defb5 /sys-cluster/keepalived/files
parentsys-apps/iproute2: alpha stable wrt bug #666778 (diff)
downloadgentoo-2c77e25783da444692e66820b72472c21bbeab32.tar.gz
gentoo-2c77e25783da444692e66820b72472c21bbeab32.tar.bz2
gentoo-2c77e25783da444692e66820b72472c21bbeab32.zip
sys-cluster/keepalived: bump to 2.0.7
Closes: https://bugs.gentoo.org/664268 Signed-off-by: Tomáš Mózes <hydrapolic@gmail.com> Package-Manager: Portage-2.3.49, Repoman-2.3.10 Closes: https://github.com/gentoo/gentoo/pull/9934
Diffstat (limited to 'sys-cluster/keepalived/files')
-rw-r--r--sys-cluster/keepalived/files/keepalived.confd-r13
-rw-r--r--sys-cluster/keepalived/files/keepalived.init-r121
-rw-r--r--sys-cluster/keepalived/files/keepalived.service13
-rw-r--r--sys-cluster/keepalived/files/keepalived.service.conf2
4 files changed, 39 insertions, 0 deletions
diff --git a/sys-cluster/keepalived/files/keepalived.confd-r1 b/sys-cluster/keepalived/files/keepalived.confd-r1
new file mode 100644
index 000000000000..5b273c19c6ef
--- /dev/null
+++ b/sys-cluster/keepalived/files/keepalived.confd-r1
@@ -0,0 +1,3 @@
+# Keepalived options
+# Increase logging:
+#KEEPALIVED_OPTS="-D"
diff --git a/sys-cluster/keepalived/files/keepalived.init-r1 b/sys-cluster/keepalived/files/keepalived.init-r1
new file mode 100644
index 000000000000..98277b00bf56
--- /dev/null
+++ b/sys-cluster/keepalived/files/keepalived.init-r1
@@ -0,0 +1,21 @@
+#!/sbin/openrc-run
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ use logger
+ # The interfaces do not actually need to exist to start, it handles them gracefully.
+ use net
+}
+
+command="/usr/sbin/keepalived"
+command_args="${KEEPALIVED_OPTS}"
+extra_started_commands="reload"
+pidfile="/run/${RC_SVCNAME}.pid"
+required_files="/etc/keepalived/keepalived.conf"
+
+reload() {
+ ebegin "Reloading ${RC_SVCNAME}"
+ start-stop-daemon --signal HUP --pidfile "${pidfile}"
+ eend $?
+}
diff --git a/sys-cluster/keepalived/files/keepalived.service b/sys-cluster/keepalived/files/keepalived.service
new file mode 100644
index 000000000000..ec47a576b776
--- /dev/null
+++ b/sys-cluster/keepalived/files/keepalived.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=LVS and VRRP High Availability Monitor
+After=network-online.target syslog.target
+
+[Service]
+Type=forking
+PIDFile=/run/keepalived.pid
+KillMode=process
+ExecStart=/usr/sbin/keepalived $KEEPALIVED_OPTIONS
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target
diff --git a/sys-cluster/keepalived/files/keepalived.service.conf b/sys-cluster/keepalived/files/keepalived.service.conf
new file mode 100644
index 000000000000..cb24394a6d07
--- /dev/null
+++ b/sys-cluster/keepalived/files/keepalived.service.conf
@@ -0,0 +1,2 @@
+[Service]
+#Environment="KEEPALIVED_OPTIONS=-D"