mirror of
https://github.com/curl/curl.git
synced 2026-04-15 02:51:42 +03:00
make sure the ipv6 http server gets its pid stored in a separate file
This commit is contained in:
parent
1faef62d59
commit
dc28a9c0c1
3 changed files with 19 additions and 10 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue