make sure the ipv6 http server gets its pid stored in a separate file

This commit is contained in:
Daniel Stenberg 2004-12-14 21:52:16 +00:00
parent 1faef62d59
commit dc28a9c0c1
3 changed files with 19 additions and 10 deletions

View file

@ -7,6 +7,7 @@ my $verbose=0; # set to 1 for debugging
my $dir=".";
my $port = 8999; # just a default
my $ipv6;
my $pid=".http.pid"; # name of the pidfile
do {
if($ARGV[0] eq "-v") {
$verbose=1;
@ -15,6 +16,10 @@ do {
$dir=$ARGV[1];
shift @ARGV;
}
elsif($ARGV[0] eq "-p") {
$pid=$ARGV[1];
shift @ARGV;
}
elsif($ARGV[0] =~ /^(\d+)$/) {
$port = $1;
}
@ -23,4 +28,4 @@ do {
}
} while(shift @ARGV);
exec("server/sws $ipv6$port $dir");
exec("server/sws --pidfile $pid $ipv6$port $dir");