Hello team, 

   Following attached a patch to address the issue reported on bug
#982673. 

 Thanks. 
mmello

-- 
Marcelo Moreira de Mello <mme...@redhat.com>
Red Hat Inc.
From: Marcelo Moreira de Mello <mme...@redhat.com>
Date: Tue, 9 Jul 2013 11:32:05 -0300
Subject: [PATCH]  982673 - Fixed rhnsd man page and adjusted the minimum
 polling interval to 1 minute

---
 client/rhel/rhnsd/man/en/rhnsd.8 | 6 ++++--
 client/rhel/rhnsd/rhnsd.c        | 2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/client/rhel/rhnsd/man/en/rhnsd.8 b/client/rhel/rhnsd/man/en/rhnsd.8
index aca82e9..50836a5 100644
--- a/client/rhel/rhnsd/man/en/rhnsd.8
+++ b/client/rhel/rhnsd/man/en/rhnsd.8
@@ -33,8 +33,10 @@ available. If any are queued, rhnsd will execute those actions.
 rhnsd is typically started from the initialization (init) scripts in 
 \fI/etc/init.d/rhnsd\fP.
 when it's time to poll the Spacewalk server for available
-updates and actions. The default interval is every 240 minutes. 
-The minimum polling interval is 60 minutes. 
+updates and actions. The default interval is every 240 minutes.
+The minimum polling interval is 1 minute. A polling interval of less
+than 60 minutes will get your server blocked if you are connecting to
+rhn.redhat.com.
 .PP
 To check for updates, rhnsd runs an external program called 
 \fBrhn_check\fR. This is a small application that actually
diff --git a/client/rhel/rhnsd/rhnsd.c b/client/rhel/rhnsd/rhnsd.c
index 5f0711d..2b5a1c6 100644
--- a/client/rhel/rhnsd/rhnsd.c
+++ b/client/rhel/rhnsd/rhnsd.c
@@ -98,7 +98,7 @@ static void unset_signal_handlers (void);
 static void SIGHUP_handler(int);
 
 /* Arguments */
-#define MIN_INTERVAL  60         /* minimal sane interval; RHN will blacklist
+#define MIN_INTERVAL  1         /* minimal sane interval; RHN will blacklist
 				   if lower, so don't think you can recompile
 				   with a lower value than this. */
 
-- 
1.8.3.1

_______________________________________________
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Reply via email to