mirror of
https://github.com/curl/curl.git
synced 2026-04-15 06:01:42 +03:00
sws and tftpd command line option naming adjustments
This commit is contained in:
parent
8524c04ca9
commit
a114b7b1c0
4 changed files with 86 additions and 19 deletions
|
|
@ -9,6 +9,9 @@ my $port = 8999; # just a default
|
|||
my $ipv6;
|
||||
my $pid=".http.pid"; # name of the pidfile
|
||||
my $fork;
|
||||
|
||||
my $flags = "";
|
||||
|
||||
do {
|
||||
if($ARGV[0] eq "-v") {
|
||||
$verbose=1;
|
||||
|
|
@ -33,4 +36,9 @@ do {
|
|||
}
|
||||
} while(shift @ARGV);
|
||||
|
||||
exec("server/sws --pidfile $pid$fork $ipv6$port $dir");
|
||||
$flags .= "--pidfile \"$pid\" ";
|
||||
$flags .= "--fork " if(defined($fork));
|
||||
$flags .= "--ipv6 " if(defined($ipv6));
|
||||
$flags .= "--port $port --srcdir \"$dir\"";
|
||||
|
||||
exec("server/sws $flags");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue