aboutsummaryrefslogtreecommitdiffstats
path: root/main/zabbix
diff options
context:
space:
mode:
authorJohannes Matheis <jomat+alpinebuild@jmt.gr>2014-12-06 14:05:59 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-12-08 15:45:46 +0000
commit4f6d71c6ca4e45384fa3d6d90e9cbd2aa284a693 (patch)
treefc7de1ed4e948d81eeee0393e0de381f6b2b8d0d /main/zabbix
parent48076f7d4cc48ea6d14d7524aaddaa9b0c24b4c6 (diff)
downloadaports-4f6d71c6ca4e45384fa3d6d90e9cbd2aa284a693.tar.bz2
aports-4f6d71c6ca4e45384fa3d6d90e9cbd2aa284a693.tar.xz
main/zabbix: use pid file in zabbix agentd init script
Diffstat (limited to 'main/zabbix')
-rw-r--r--main/zabbix/APKBUILD8
-rw-r--r--main/zabbix/zabbix-agentd.initd14
2 files changed, 16 insertions, 6 deletions
diff --git a/main/zabbix/APKBUILD b/main/zabbix/APKBUILD
index bfc42b4848..4ee57e26ed 100644
--- a/main/zabbix/APKBUILD
+++ b/main/zabbix/APKBUILD
@@ -3,7 +3,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=zabbix
pkgver=2.4.2
-pkgrel=0
+pkgrel=1
pkgdesc="Enterprise-class open source distributed monitoring"
url="http://www.zabbix.com"
arch="all"
@@ -198,7 +198,7 @@ bf62c539870874e11de39c60cb974786 automake.patch
40c81bdec85815f4ba637eb6528cc5e8 musl-fix-includes.patch
8fe442b55584dd5ba784a3140bb980aa zabbix-server.initd
bd91d0243cf8f72b86b9bf0b91963663 zabbix-server.confd
-1a5c718bcf815fcf659e14fb0b576a1a zabbix-agentd.initd
+d679ccec92ccc1e7a117b27652e6b856 zabbix-agentd.initd
a99978139481e69434f78fc3e8c53441 zabbix-proxy.initd
c3b399a406f7dd1df0de7b3fae3ed081 002-fix-res_send-on-uclibc.patch"
sha256sums="dad3ac64176f267b319d77bb0ec2bea0acdce945425f7ae39011cba019a75003 zabbix-2.4.2.tar.gz
@@ -211,7 +211,7 @@ b347ca77660e69bea353c50e2fce0c7c4cc837f782c9f84f74ba92c1a62b4c1b automake.patch
38b4e1a5d5c16c7d9b31347acf710d84b693f6e1df365d1072548e897e034884 musl-fix-includes.patch
311a29f05a58cfe67c273f7cf25092fab23423feb07e8ee1344141a146f0ccc3 zabbix-server.initd
ddf75041fb0afc5b211dd79a934341cc9db4325447ad33a42cbf09bdfb5cad42 zabbix-server.confd
-4f93c4868726a3e8fed12a030cfce8911f105217a59187d6b3e1565d8d3e76b5 zabbix-agentd.initd
+308149ec35893631f85e1acb7eefed3b2d0e70a0735f2f4f79ebd82615a084f3 zabbix-agentd.initd
60a01c08df054a0c1bcfb71e378544b4c4e489e6a6779d96383387ed34ddc0b0 zabbix-proxy.initd
c796e9aa371f50155b396da53504375f35f77bd3941440525dcaf92da33dac99 002-fix-res_send-on-uclibc.patch"
sha512sums="9f8576619f2d55c769b060fab8514d59c5a7c7cee79f7cd6d09276721653c1ee472ca422f9c756a36d223ff43d5dda2e2a6669dc2ac617ca172f6954bda98b56 zabbix-2.4.2.tar.gz
@@ -224,6 +224,6 @@ b65c6ba7701d98ae7f6fe2124c1d2b8b8fea3c3cc7ee080bf99f5afff0aaa6a025c2a1f5136b4700
9b87ec1ea4a9cbb501c16012d498cdae82a696f4cd495e1e8cb201d9e31c6e135da5bb264c6273f2de87297bd3e4bd16f66703610686f5d610e3316ee24aac91 musl-fix-includes.patch
790760ddde503b3cf188fbf58e05587756fbf09c4d3cda8493b3b87b44a9a9ed00d4685045f83249c9714bd8afb6a184412ddfff865c073bbed5c513a78ded1c zabbix-server.initd
a91821c6086a1fc0197750cc68073419defcb7d775b11b14a993409a8f61c7a1a0a0af95de27eed9f3b8357f8362640cb1b26b91b56f4f1d714ca6f222d02b80 zabbix-server.confd
-3ef0fe0c1c94f2f01a0c335a45ee0f3c0cd4b125d96b5eefa869a17efb352087a5dd18ef8e87c35e6816b6fb705b829f0a25452e7285637d3595ff4c103b7c21 zabbix-agentd.initd
+27ca15a421b00588552062e0cddadc8d680469c95be1288f1cf815753db349e2acc846dc51c9596fdf32c55fd249566301e87f65dd053f6a521adec735113ff9 zabbix-agentd.initd
b305ea06641c6a331273f065a4a85fac92c45e107a30e85cb41be4ea36e2efbf5442c69cc6605ea3734a851808f7abba20042058d4b07832d858cdb63e98d405 zabbix-proxy.initd
cc00603b26a4bd49fba5d8b5e2aaaa7c947c888f4970a4a582a201012aee956f926251eb85236014660fe0b3fa1a22a7ac27b4331e00af64d2a658e972d2d7df 002-fix-res_send-on-uclibc.patch"
diff --git a/main/zabbix/zabbix-agentd.initd b/main/zabbix/zabbix-agentd.initd
index 745b35e06b..08e0ffcb38 100644
--- a/main/zabbix/zabbix-agentd.initd
+++ b/main/zabbix/zabbix-agentd.initd
@@ -3,6 +3,15 @@
# 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 $
+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
@@ -11,12 +20,13 @@ depend() {
start() {
ebegin "Starting Zabbix agent"
- start-stop-daemon --start --user zabbix:zabbix --exec /usr/sbin/zabbix_agentd
+ start-stop-daemon --start --user ${user}:${group} --exec /usr/sbin/zabbix_agentd
eend $?
}
stop() {
ebegin "Stopping Zabbix agent"
- start-stop-daemon --stop --user zabbix --pidfile /var/run/zabbix/zabbix_agentd.pid
+ start-stop-daemon --stop --user ${user} --pidfile ${pidfile}
eend $?
}
+