diff options
author | 2012-08-01 22:27:49 +0000 | |
---|---|---|
committer | 2012-08-01 22:27:49 +0000 | |
commit | 6aec6dd84ceff013039a4042d401d6e37025f599 (patch) | |
tree | 73156736268d35cba519ea86fec17504d624ae4b /net-analyzer/zabbix/files/2.0/init.d/zabbix-agentd | |
parent | Version bump KDE SC 4.9.0 (diff) | |
download | gentoo-2-6aec6dd84ceff013039a4042d401d6e37025f599.tar.gz gentoo-2-6aec6dd84ceff013039a4042d401d6e37025f599.tar.bz2 gentoo-2-6aec6dd84ceff013039a4042d401d6e37025f599.zip |
Fixes for bug 426818 and bug 427740. Modified init scripts to create /var/run/zabbix if needed and added 'sysvipc' to php dependency use flags.
(Portage version: 2.1.11.9/cvs/Linux x86_64)
Diffstat (limited to 'net-analyzer/zabbix/files/2.0/init.d/zabbix-agentd')
-rw-r--r-- | net-analyzer/zabbix/files/2.0/init.d/zabbix-agentd | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/net-analyzer/zabbix/files/2.0/init.d/zabbix-agentd b/net-analyzer/zabbix/files/2.0/init.d/zabbix-agentd index 294881238c2c..07e8a4a98b08 100644 --- a/net-analyzer/zabbix/files/2.0/init.d/zabbix-agentd +++ b/net-analyzer/zabbix/files/2.0/init.d/zabbix-agentd @@ -1,9 +1,10 @@ #!/sbin/runscript # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/files/2.0/init.d/zabbix-agentd,v 1.2 2012/05/22 11:34:02 mattm Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/zabbix/files/2.0/init.d/zabbix-agentd,v 1.3 2012/08/01 22:27:49 mattm Exp $ pid_file="/var/run/zabbix/zabbix_agentd.pid" +dir="/var/run/zabbix" depend() { need net @@ -12,6 +13,11 @@ depend() { } start() { + if [ ! -d "${dir}" ]; then + einfo " Creating ${dir}" + /bin/mkdir -p "${dir}" + /bin/chown zabbix:zabbix "${dir}" + fi ebegin "Starting Zabbix agent" start-stop-daemon --start --pidfile ${pid_file} \ --user zabbix --group zabbix --exec /usr/sbin/zabbix_agentd -- -c /etc/zabbix/zabbix_agentd.conf |