aports/community/zabbix/zabbix-agentd.initd
Jakub Jirutka 4272e802a1 community/*: move php5 and dependent pkgs from main
There two main reasons for this change:

* Active support of PHP 5.x ended on January 2017, security support will
  end on December 2018. Packages in the main repository should be
  supported for at least 2 years, this means until first quarter of 2019
  for the upcoming v3.6.

* php7 and its extensions are currently in the community repository, so
  we can't use single abuild for both php5-* and php7-* packages (as we
  do for Python and Lua packages).

This change was suggested by @vakartel, approved by @ncopa, @kaniini, and
@jirutka.
2017-03-28 18:38:20 +02:00

34 lines
822 B
Plaintext

#!/sbin/openrc-run
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/files/1.6.6/init.d/zabbix-agentd,v 1.1 2009/10/05 15:55:23 patrick Exp $
# ensure the same file is specified as PidFile in /etc/zabbix/zabbix_agentd.conf
pidfile=/var/run/zabbix/zabbix_agentd.pid
user=zabbix
group=zabbix
start_pre() {
checkpath --owner ${user}:${group} --directory ${pidfile%/*}
}
depend() {
need net
provide zabbix-agent
use zabbix-server
}
start() {
ebegin "Starting Zabbix agent"
start-stop-daemon --pidfile ${pidfile} --start --user ${user}:${group} --exec /usr/sbin/zabbix_agentd
eend $?
}
stop() {
ebegin "Stopping Zabbix agent"
start-stop-daemon --stop --user ${user} --pidfile ${pidfile}
eend $?
}