packages: monit-rc-quagga/monit-rc-quagga.spec (NEW), monit-rc-quagga/quagg...

gotar gotar at pld-linux.org
Sun May 3 20:49:31 CEST 2009


Author: gotar                        Date: Sun May  3 18:49:31 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial monit script for quagga

---- Files affected:
packages/monit-rc-quagga:
   monit-rc-quagga.spec (NONE -> 1.1)  (NEW), quagga-bgpd.monitrc (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/monit-rc-quagga/monit-rc-quagga.spec
diff -u /dev/null packages/monit-rc-quagga/monit-rc-quagga.spec:1.1
--- /dev/null	Sun May  3 20:49:31 2009
+++ packages/monit-rc-quagga/monit-rc-quagga.spec	Sun May  3 20:49:26 2009
@@ -0,0 +1,52 @@
+# $Revision$, $Date$
+Summary:	monitrc file for monitoring Quagga routing services
+Summary(pl.UTF-8):	Plik monitrc do monitorowania usług routingu Quaggi
+Name:		monit-rc-quagga
+Version:	1
+Release:	1
+License:	GPL
+Group:		Applications/System
+Source0:	quagga-bgpd.monitrc
+BuildRequires:	rpmbuild(macros) >= 1.268
+Requires(post,postun):	monit
+Requires:	monit
+Requires:	quagga
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+monitrc file for monitoring Quagga routing services (currently only bgpd).
+
+%description -l pl.UTF-8
+Plik monitrc do monitorowania usług routingu Quaggi (obecnie tylko bgpd).
+
+%prep
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/monit
+
+install %{SOURCE0} $RPM_BUILD_ROOT%{_sysconfdir}/monit
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%service -q monit restart
+
+%postun
+%service -q monit restart
+
+%files
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/monit/*.monitrc
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2009/05/03 18:49:26  gotar
+- initial monit script for quagga
+

================================================================
Index: packages/monit-rc-quagga/quagga-bgpd.monitrc
diff -u /dev/null packages/monit-rc-quagga/quagga-bgpd.monitrc:1.1
--- /dev/null	Sun May  3 20:49:31 2009
+++ packages/monit-rc-quagga/quagga-bgpd.monitrc	Sun May  3 20:49:26 2009
@@ -0,0 +1,21 @@
+check process bgpd with pidfile /var/run/quagga/bgpd.pid
+	group network
+	start program = "/etc/rc.d/init.d/bgpd restart"
+	stop  program = "/etc/rc.d/init.d/bgpd stop"
+	if failed unix /var/run/quagga/bgpd.vty then restart
+	depends on bgpd_bin
+	depends on bgpd_rc
+
+check file bgpd_bin with path /usr/sbin/bgpd
+	group network
+	if failed checksum then unmonitor
+	if failed permission 755 then unmonitor
+	if failed uid root then unmonitor
+	if failed gid root then unmonitor
+
+check file bgpd_rc with path /etc/rc.d/init.d/bgpd
+	group network
+	if failed checksum then unmonitor
+	if failed permission 754 then unmonitor
+	if failed uid root then unmonitor
+	if failed gid root then unmonitor
================================================================


More information about the pld-cvs-commit mailing list