From 7218e1b46bceac05841e90472501742d905fb3fc Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 12 Mar 2021 21:55:15 +0000 Subject: gentoo resync : 12.03.2021 --- net-analyzer/zabbix/files/zabbix-agent2.init | 20 ++++++++++++++++++++ net-analyzer/zabbix/files/zabbix-agent2.service | 12 ++++++++++++ net-analyzer/zabbix/files/zabbix-agent2.tmpfiles | 1 + 3 files changed, 33 insertions(+) create mode 100644 net-analyzer/zabbix/files/zabbix-agent2.init create mode 100644 net-analyzer/zabbix/files/zabbix-agent2.service create mode 100644 net-analyzer/zabbix/files/zabbix-agent2.tmpfiles (limited to 'net-analyzer/zabbix/files') diff --git a/net-analyzer/zabbix/files/zabbix-agent2.init b/net-analyzer/zabbix/files/zabbix-agent2.init new file mode 100644 index 000000000000..6a88e62b429a --- /dev/null +++ b/net-analyzer/zabbix/files/zabbix-agent2.init @@ -0,0 +1,20 @@ +#!/sbin/openrc-run +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +command="/usr/sbin/zabbix_agent2" +command_args="--foreground --config /etc/zabbix/zabbix_agent2.conf" +command_background="true" +command_user="zabbix:zabbix" +pidfile="/run/${RC_SVCNAME}.pid" + +depend() { + need net + provide zabbix-agent + use zabbix-server +} + +start_pre() { + checkpath -q -d -m 0750 -o root:zabbix /etc/zabbix + checkpath -q -f -m 0640 -o root:zabbix /etc/zabbix/*.conf +} diff --git a/net-analyzer/zabbix/files/zabbix-agent2.service b/net-analyzer/zabbix/files/zabbix-agent2.service new file mode 100644 index 000000000000..b182482fde97 --- /dev/null +++ b/net-analyzer/zabbix/files/zabbix-agent2.service @@ -0,0 +1,12 @@ +[Unit] +Description=Zabbix agent +Documentation=https://zabbix.com/manuals +After=network.target network-online.target + +[Service] +User=zabbix +Group=zabbix +ExecStart=/usr/sbin/zabbix_agent2 --foreground --config /etc/zabbix/zabbix_agent2.conf + +[Install] +WantedBy=multi-user.target diff --git a/net-analyzer/zabbix/files/zabbix-agent2.tmpfiles b/net-analyzer/zabbix/files/zabbix-agent2.tmpfiles new file mode 100644 index 000000000000..56471bb42c0a --- /dev/null +++ b/net-analyzer/zabbix/files/zabbix-agent2.tmpfiles @@ -0,0 +1 @@ +d /run/zabbix 0755 zabbix zabbix - -- cgit v1.2.3