rpms/zabbix/devel zabbix-agent.init, 1.2, 1.3 zabbix-server.init, 1.2, 1.3 zabbix.spec, 1.22, 1.23

Dan Horak (sharkcz) fedora-extras-commits at redhat.com
Mon Jul 7 08:04:12 UTC 2008


Author: sharkcz

Update of /cvs/pkgs/rpms/zabbix/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv5473

Modified Files:
	zabbix-agent.init zabbix-server.init zabbix.spec 
Log Message:
* Mon Jul 07 2008 Dan Horak <dan[at]danny.cz> - 1.4.5-4
- add LSB headers into init scripts
- disable internal log rotation



Index: zabbix-agent.init
===================================================================
RCS file: /cvs/pkgs/rpms/zabbix/devel/zabbix-agent.init,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- zabbix-agent.init	22 Aug 2007 02:16:28 -0000	1.2
+++ zabbix-agent.init	7 Jul 2008 08:03:13 -0000	1.3
@@ -4,6 +4,16 @@
 # description: zabbix agent daemon
 #
 
+### BEGIN INIT INFO
+# Provides: zabbix-agent
+# Required-Start: $local_fs $network
+# Required-Stop: $local_fs $network
+# Default-Start:
+# Default-Stop: 0 1 2 3 4 5 6
+# Short-Description: start and stop zabbix agent
+# Description: Zabbix Agent
+### END INIT INFO
+
 # zabbix details
 ZABBIX_AGENTD=/usr/sbin/zabbix_agentd
 CONF=/etc/zabbix/zabbix_agentd.conf
@@ -18,8 +28,8 @@
 # Check that networking is up.
 [ ${NETWORKING} = "no" ] && exit 0
 
-[ -x $ZABBIX_AGENTD ] || exit 0
-[ -e $CONF ] || exit 0
+[ -x $ZABBIX_AGENTD ] || exit 5
+[ -e $CONF ] || exit 6
 
 RETVAL=0
 


Index: zabbix-server.init
===================================================================
RCS file: /cvs/pkgs/rpms/zabbix/devel/zabbix-server.init,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- zabbix-server.init	22 Aug 2007 02:16:28 -0000	1.2
+++ zabbix-server.init	7 Jul 2008 08:03:13 -0000	1.3
@@ -4,6 +4,16 @@
 # description: zabbix server daemon
 #
 
+### BEGIN INIT INFO
+# Provides: zabbix
+# Required-Start: $local_fs $network
+# Required-Stop: $local_fs $network
+# Default-Start:
+# Default-Stop: 0 1 2 3 4 5 6
+# Short-Description: start and stop zabbix server
+# Description: Zabbix Server
+### END INIT INFO
+
 # zabbix details
 ZABBIX=/usr/sbin/zabbix_server
 CONF=/etc/zabbix/zabbix_server.conf
@@ -18,8 +28,8 @@
 # Check that networking is up.
 [ ${NETWORKING} = "no" ] && exit 0
 
-[ -x $ZABBIX ] || exit 0
-[ -e $CONF ] || exit 0
+[ -x $ZABBIX ] || exit 5
+[ -e $CONF ] || exit 6
 
 RETVAL=0
 


Index: zabbix.spec
===================================================================
RCS file: /cvs/pkgs/rpms/zabbix/devel/zabbix.spec,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- zabbix.spec	2 May 2008 17:17:54 -0000	1.22
+++ zabbix.spec	7 Jul 2008 08:03:13 -0000	1.23
@@ -1,6 +1,6 @@
 Name:           zabbix
 Version:        1.4.5
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Open-source monitoring solution for your IT infrastructure
 
 Group:          Applications/Internet
@@ -137,10 +137,12 @@
 cat misc/conf/zabbix_agentd.conf | sed \
     -e 's|PidFile=.*|PidFile=%{_localstatedir}/run/zabbix/zabbix_agentd.pid|g' \
     -e 's|LogFile=.*|LogFile=%{_localstatedir}/log/zabbix/zabbix_agentd.log|g' \
+    -e 's|#LogFileSize=.*|LogFileSize=0|g' \
     > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/zabbix_agentd.conf
 cat misc/conf/zabbix_server.conf | sed \
     -e 's|PidFile=.*|PidFile=%{_localstatedir}/run/zabbix/zabbix.pid|g' \
     -e 's|LogFile=.*|LogFile=%{_localstatedir}/log/zabbix/zabbix_server.log|g' \
+    -e 's|#LogFileSize=.*|LogFileSize=0|g' \
     -e 's|AlertScriptsPath=/home/zabbix/bin/|AlertScriptsPath=%{_localstatedir}/lib/zabbix/|g' \
     -e 's|DBUser=root|DBUser=zabbix|g' \
     -e 's|DBSocket=/tmp/mysql.sock|DBSocket=%{_localstatedir}/lib/%{zdb}/%{zdb}.sock|g' \
@@ -250,6 +252,10 @@
 %{_datadir}/%{name}/js/*
 
 %changelog
+* Mon Jul 07 2008 Dan Horak <dan[at]danny.cz> - 1.4.5-4
+- add LSB headers into init scripts
+- disable internal log rotation
+
 * Fri May 02 2008 Jarod Wilson <jwilson at redhat.com> - 1.4.5-3
 - Seems the zabbix folks replaced the original 1.4.5 tarball with
   an updated tarball or something -- it actually does contain a




More information about the fedora-extras-commits mailing list