Changeset 6b9c9cc891ad219b3f22663481dfaedb6d1ea273

Show
Ignore:
Timestamp:
07/08/08 15:06:36 (6 years ago)
Author:
Mark Harrison <mark@omniti.com>
git-committer:
Mark Harrison <mark@omniti.com> 1215529596 +0000
git-parent:

[b8d17f1fe46efac764a9f6b52b2e89a5695676fd]

git-author:
Mark Harrison <mark@omniti.com> 1215529596 +0000
Message:

Moving the update script to be an integral part of resmon. Run ./resmon -u to
update. Also takes the -d flag for debug info.

git-svn-id: https://labs.omniti.com/resmon/trunk@139 8c0face9-b7db-6ec6-c4b3-d5f7145c7d55

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • resmon

    rb8d17f1 r6b9c9cc  
    1212use Getopt::Long; 
    1313use Data::Dumper; 
    14 use vars qw($config_file $debug $status_file $interface $port $config $status); 
     14use vars qw($config_file $debug $status_file $interface $port $config 
     15            $status $update); 
    1516 
    1617use Resmon::Config; 
     
    2526  "d"   => \$debug, 
    2627  "f=s" => \$status_file, 
     28  "u"   => \$update, 
    2729); 
     30 
     31if ($update) { 
     32    use Resmon::Updater; 
     33    exit(Resmon::Updater::update($debug)); 
     34} 
    2835 
    2936$config_file ||= "$0.conf";