Changeset 1000

Show
Ignore:
Timestamp:
2005-02-11 19:53:38 (4 years ago)
Author:
davide
Message:

Added --wait

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • miscellaneous/trunk/web-server/server-control/BounceServer

    r975 r1000  
    33use warnings; 
    44use strict; 
     5 
     6my $wait; 
     7 
     8use Getopt::Long; 
     9GetOptions( 
     10    "wait"  => \$wait, 
     11) or exit 2; 
    512 
    613my $prod = "/var/website/musicbrainz/prod"; 
     
    6875die "exited with $?\n" if $?; 
    6976 
     77if ($wait) 
     78{ 
     79    print "Waiting for confirmation to restart - press RETURN:"; 
     80    scalar <STDIN>; 
     81} 
     82 
    7083print "Starting Apache\n"; 
    7184system "$back_apachectl start";