Andrea,

Just looking through these patches.

Looks like good stuff.  Hope to give it a try soon.

-Brian


[EMAIL PROTECTED] wrote:

>Update of /cvsroot/systemimager/systemimager/sbin
>In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17761/sbin
>
>Modified Files:
>       si_monitor 
>Log Message:
>added --daemon options (don't show anything to stdout, just handle and store 
>data sent by clients)
>
>Index: si_monitor
>===================================================================
>RCS file: /cvsroot/systemimager/systemimager/sbin/si_monitor,v
>retrieving revision 1.1
>retrieving revision 1.2
>diff -u -d -r1.1 -r1.2
>--- si_monitor 26 Mar 2005 16:26:24 -0000      1.1
>+++ si_monitor 27 Mar 2005 18:08:50 -0000      1.2
>@@ -48,6 +48,9 @@
>  --log LOGFILE          If specified every log information will be
>                         reported in the file LOGFILE.
> 
>+ --daemon               Do not print anything to stdout, just handle and
>+                        store data sent by clients.
>+                        
> Download, report bugs, and make suggestions at:
> http://systemimager.org/
> EOF
>@@ -66,7 +69,7 @@
> die "No such lock directory '$conf{'lock_dir'}'\n"
>     if (! -d $conf{'lock_dir'});
> 
>-my ($help, $version, $quiet, $port, $database, $log_file);
>+my ($help, $version, $quiet, $port, $database, $log_file, $daemon);
> GetOptions(
>       "help"          => \$help,
>       "version"       => \$version,
>@@ -74,6 +77,7 @@
>       "port=s"        => \$port,
>       "db=s"          => \$database,
>       "log=s"         => \$log_file,
>+      "daemon"        => \$daemon,
> ) or die "$help_info";
> 
> ### BEGIN evaluate commad line options ###
>@@ -131,24 +135,26 @@
> listen(IN, SOMAXCONN) or 
>       die "error: could not listen on port $port : $!\n";
> 
>-# Just print the header... -AR-
>-display_clients();
>-
> # Fork the interactive task.
>-my $listen_pid = fork();
>-if ($listen_pid) {
>-      # Interactive task.
>-      ReadMode(3);
>-      my $key;
>-      while($key = ReadKey(0)) { 
>-              if (lc($key) eq "q") {
>-                      ReadMode(0);
>-                      kill(9, $listen_pid);
>-                      close(LOG);
>-                      unlink("$lock_file", "$video_lock_file");
>-                      exit(0);
>-              }
>-      }
>+unless ($daemon) {
>+    # Just print the header... -AR-
>+    display_clients();
>+
>+      # Fork interactive task.
>+    my $listen_pid = fork();
>+    if ($listen_pid) {
>+      ReadMode(3);
>+      my $key;
>+      while($key = ReadKey(0)) { 
>+              if (lc($key) eq "q") {
>+                      ReadMode(0);
>+                      kill(9, $listen_pid);
>+                      close(LOG);
>+                      unlink("$lock_file", "$video_lock_file");
>+                      exit(0);
>+              }
>+      }
>+    }
> }
> 
> # Begin to accept client connections.
>@@ -183,7 +189,7 @@
>               update_db($other_host, $_);
> 
>               # Refresh clients view.
>-              display_clients();
>+              display_clients() unless ($daemon);
>               
>               # Close client connection.
>               close(CLIENT);
>
>
>
>-------------------------------------------------------
>SF email is sponsored by - The IT Product Guide
>Read honest & candid reviews on hundreds of IT Products from real users.
>Discover which products truly live up to the hype. Start reading now.
>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>_______________________________________________
>systemimager-cvs-commits mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/systemimager-cvs-commits
>
>
>  
>

-- 
------------------------------------------------------
 Brian Elliott Finley           Mobile:  630.631.6621
 gpg --keyserver wwwkeys.pgp.net --recv-keys 10F8EE52
------------------------------------------------------



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Sisuite-devel mailing list
Sisuite-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sisuite-devel

Reply via email to