rpms/denyhosts/devel denyhosts.logrotate, 1.1, 1.2 denyhosts.spec, 1.10, 1.11
Jason Tibbitts (tibbs)
fedora-extras-commits at redhat.com
Thu Aug 18 18:06:53 UTC 2005
Author: tibbs
Update of /cvs/extras/rpms/denyhosts/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv19805
Modified Files:
denyhosts.logrotate denyhosts.spec
Log Message:
* Thu Aug 18 2005 Jason L Tibbitts III <tibbs at math.uh.edu> - 1.0.1-1
- Update to 1.0.1
Index: denyhosts.logrotate
===================================================================
RCS file: /cvs/extras/rpms/denyhosts/devel/denyhosts.logrotate,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- denyhosts.logrotate 16 Aug 2005 22:41:43 -0000 1.1
+++ denyhosts.logrotate 18 Aug 2005 18:06:35 -0000 1.2
@@ -3,4 +3,8 @@
notifempty
size 100k
create 0644 root root
+ postrotate
+ /sbin/service denyhosts condrestart > /dev/null 2>&1 || :
+ endscript
+
}
Index: denyhosts.spec
===================================================================
RCS file: /cvs/extras/rpms/denyhosts/devel/denyhosts.spec,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- denyhosts.spec 16 Aug 2005 22:41:43 -0000 1.10
+++ denyhosts.spec 18 Aug 2005 18:06:36 -0000 1.11
@@ -1,5 +1,5 @@
Name: denyhosts
-Version: 1.0.0
+Version: 1.0.1
release: 1%{?dist}
Summary: A script to help thwart ssh server attacks
@@ -82,8 +82,13 @@
# sure that all of the hosts.deny entries were created by denyhosts
%post
/sbin/chkconfig --add denyhosts
-%{_bindir}/denyhosts.py -c /etc/denyhosts.conf --upgrade099 || :
-/sbin/service denyhosts condrestart > /dev/null 2>&1
+
+RUNNING=`/sbin/service denyhosts status | grep "is running"`
+/sbin/service denyhosts stop > /dev/null 2>&1 || :
+%{_bindir}/denyhosts.py -c /etc/denyhosts.conf --upgrade099 > /dev/null 2>&1 || :
+if [ -n "$RUNNING" ]; then
+ /sbin/service denyhosts start > /dev/null 2>&1
+fi
exit 0
@@ -120,6 +125,13 @@
%{_bindir}/denyhosts-control
%changelog
+* Thu Aug 18 2005 Jason L Tibbitts III <tibbs at math.uh.edu> - 1.0.1-1
+- Update to 1.0.1
+
+* Wed Aug 17 2005 Jason L Tibbitts III <tibbs at math.uh.edu> - 1.0.0-2
+- Restart the daemon in the logrotate script
+- Stop the running daemon before calling --upgrade099
+
* Tue Aug 16 2005 Jason L Tibbitts III <tibbs at math.uh.edu> - 1.0.0-1
- Fix condrestart
- Actually install logrotate entry
More information about the fedora-extras-commits
mailing list