1 Summary: Process monitor and restart utility
2 Summary(pl): Narzêdzie do monitorowania procesów i ich restartowania
7 Group: Applications/Console
8 Source0: http://www.tildeslash.com/monit/dist/%{name}-%{version}.tar.gz
9 # Source0-md5: e7ad6056c71becf014653f6597d110ca
11 Patch0: %{name}-localhost-http.patch
12 URL: http://www.tildeslash.com/monit/
15 BuildRequires: openssl-devel >= 0.9.7d
16 BuildRequires: rpmbuild(macros) >= 1.268
17 Requires(post,preun): /sbin/chkconfig
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 monit is an utility for monitoring daemons or similar programs running
23 on a Unix system. It will start specified programs if they are not
24 running and restart programs not responding.
27 monit jest narzêdziem do monitorowania demonów oraz podobnych
28 programów pracuj±cych w systemie Unix. monit zrestartuje podany
29 program w momencie gdy przestaje on pracowaæ lub w momencie gdy
30 program przestaje odpowiadaæ.
38 --with-ssl-lib-dir=%{_libdir}
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,monit}
46 DESTDIR=$RPM_BUILD_ROOT
48 # include all files provided by services:
49 echo "include %{_sysconfdir}/monit/*.monitrc" >> monitrc.main
51 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
52 install monitrc.main $RPM_BUILD_ROOT%{_sysconfdir}/monitrc
53 install monitrc $RPM_BUILD_ROOT%{_sysconfdir}/monit/default.monitrc
56 rm -rf $RPM_BUILD_ROOT
59 /sbin/chkconfig --add %{name}
60 %service monit restart "Monit Daemon"
63 if [ "$1" = "0" ]; then
65 /sbin/chkconfig --del %{name}
69 %defattr(644,root,root,755)
70 %doc doc/*.html CHANGES.txt CONTRIBUTORS FAQ.txt README*
71 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}rc
72 %attr(751,root,root) %dir %{_sysconfdir}/monit
73 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/monit/*.monitrc
74 %attr(755,root,root) %{_bindir}/*
75 %attr(754,root,root) /etc/rc.d/init.d/%{name}