Added -name, -useblocking and -announce options
[clearscm.git] / bin / checkdns
index 08e57c0..a6fd957 100755 (executable)
@@ -121,6 +121,9 @@ GetOptions (
   'logpath=s' => \$logpath,
 ) or Usage 'Invalid parameter';
 
+# Need to reset $initial_sleep if it GetOptions changed it
+$initial_sleep = $sleep;
+
 $SIG {INT}  =
 $SIG {TERM} = \&Shutdown;
 
@@ -137,7 +140,11 @@ $log->msg (
   "Started $FindBin::Script $VERSION logging to $logpath/$FindBin::Script.log"
 );
 
-$log->msg ("Polling DNS on host $host every $sleep minutes");  
+if ($sleep > 1) {
+  $log->msg ("Polling DNS on host $host every $sleep minutes");
+} else {
+  $log->msg ("Polling DNS on host $host every minute");  
+} # if
 
 EnterDaemonMode 
   unless get_debug;
@@ -185,9 +192,9 @@ L<Getopt::Long|Getopt::Long>
 =begin html
 
 <blockquote>
-<a href="http://clearscm.com/php/cvs_man.php?file=lib/Display.pm">Display</a><br>
-<a href="http://clearscm.com/php/cvs_man.php?file=lib/Logger.pm">Logger</a><br>
-<a href="http://clearscm.com/php/cvs_man.php?file=lib/Utils.pm">Utils</a><br>
+<a href="http://clearscm.com/php/scm_man.php?file=lib/Display.pm">Display</a><br>
+<a href="http://clearscm.com/php/scm_man.php?file=lib/Logger.pm">Logger</a><br>
+<a href="http://clearscm.com/php/scm_man.php?file=lib/Utils.pm">Utils</a><br>
 </blockquote>
 
 =end html