--- /dev/null
+MAILTO=root
+
+# try to monitor again Apache
+
+# needed in cases when restarts get timeout and later problem is fixed by
+# sysadmin. something needs to give a kick to get apache back to monitoring.
+#55 */3 * * * root /usr/sbin/monit monitor apache
Summary: monitrc file for monitoring Apache 1.x web server
Summary(pl.UTF-8): Plik monitrc do monitorowania serwera WWW Apache 1.x
Name: monit-rc-apache1
-Version: 1.1
-Release: 2
+Version: 1.2
+Release: 1
License: GPL
Group: Applications/System
Source0: apache1.monitrc
+Source1: apache1.cron
BuildRequires: rpmbuild(macros) >= 1.268
Requires(post,postun): monit
Requires: apache1-base >= 1.3.39-2
Requires: monit
+Suggests: crondaemon
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_sysconfdir}/monit
+install -d $RPM_BUILD_ROOT{%{_sysconfdir}/monit,/etc/cron.d}
-install %{SOURCE0} $RPM_BUILD_ROOT%{_sysconfdir}/monit/apache.monitrc
+cp -p %{SOURCE0} $RPM_BUILD_ROOT%{_sysconfdir}/monit/apache.monitrc
+cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/monit/*.monitrc
+%config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}