From: "Florian Schmaus" <flow@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/zabbix/, net-analyzer/zabbix/files/
Date: Wed, 17 Nov 2021 08:08:34 +0000 (UTC) [thread overview]
Message-ID: <1637136509.9534f7c3279f6b8808c3e002e5f205217e66f535.flow@gentoo> (raw)
commit: 9534f7c3279f6b8808c3e002e5f205217e66f535
Author: Belhassen Dahmen <belhassen.dahmen <AT> adjust <DOT> com>
AuthorDate: Tue Apr 20 15:40:34 2021 +0000
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Wed Nov 17 08:08:29 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9534f7c3
net-analyzer/zabbix add reload() to zabbix-server init script
As zabbix-server process supports configuration reload in runtime, it
would be great to support with through the openrc commandline utility.
Bug: https://bugs.gentoo.org/824138
Signed-off-by: Belhassen Dahmen <zegeek94 <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/20473
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
net-analyzer/zabbix/files/zabbix-server-r1.init | 25 ++++++++++++++++++++++
...{zabbix-5.4.7.ebuild => zabbix-5.4.7-r1.ebuild} | 2 +-
2 files changed, 26 insertions(+), 1 deletion(-)
diff --git a/net-analyzer/zabbix/files/zabbix-server-r1.init b/net-analyzer/zabbix/files/zabbix-server-r1.init
new file mode 100644
index 000000000000..1652ba782fa8
--- /dev/null
+++ b/net-analyzer/zabbix/files/zabbix-server-r1.init
@@ -0,0 +1,25 @@
+#!/sbin/openrc-run
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+command="/usr/sbin/zabbix_server"
+command_args="--foreground --config /etc/zabbix/zabbix_server.conf"
+command_background="true"
+command_user="zabbix:zabbix"
+pidfile="/run/${RC_SVCNAME}.pid"
+
+depend() {
+ need net
+ use mysql postgresql
+}
+
+start_pre() {
+ checkpath -q -d -m 0750 -o root:zabbix /etc/zabbix
+ checkpath -q -f -m 0640 -o root:zabbix /etc/zabbix/*.conf
+}
+
+reload() {
+ /usr/sbin/zabbix_server \
+ -c /etc/zabbix/zabbix_server.conf \
+ -R config_cache_reload
+}
diff --git a/net-analyzer/zabbix/zabbix-5.4.7.ebuild b/net-analyzer/zabbix/zabbix-5.4.7-r1.ebuild
similarity index 99%
rename from net-analyzer/zabbix/zabbix-5.4.7.ebuild
rename to net-analyzer/zabbix/zabbix-5.4.7-r1.ebuild
index f1795467d2f7..014d630c3a5c 100644
--- a/net-analyzer/zabbix/zabbix-5.4.7.ebuild
+++ b/net-analyzer/zabbix/zabbix-5.4.7-r1.ebuild
@@ -432,7 +432,7 @@ src_install() {
fperms 0640 /etc/zabbix/zabbix_server.conf
fowners root:zabbix /etc/zabbix/zabbix_server.conf
- newinitd "${FILESDIR}"/zabbix-server.init zabbix-server
+ newinitd "${FILESDIR}"/zabbix-server-r1.init zabbix-server
dosbin src/zabbix_server/zabbix_server
next reply other threads:[~2021-11-17 8:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-17 8:08 Florian Schmaus [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-09-25 7:29 [gentoo-commits] repo/gentoo:master commit in: net-analyzer/zabbix/, net-analyzer/zabbix/files/ Miroslav Šulc
2023-04-27 6:43 Miroslav Šulc
2022-04-06 9:30 Miroslav Šulc
2020-07-30 8:25 Miroslav Šulc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1637136509.9534f7c3279f6b8808c3e002e5f205217e66f535.flow@gentoo \
--to=flow@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox