mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
httpserver.pl: reorder sws command line options
make 'pidfile' and 'logfile' options appear first on command line in order to ensure that processing of other options which write to logfile do this to intended file and not the default one.
This commit is contained in:
parent
4bc6c1a026
commit
c358bab809
@ -117,10 +117,10 @@ if(!$logfile) {
|
|||||||
$logfile = server_logfilename($logdir, $proto, $ipvnum, $idnum);
|
$logfile = server_logfilename($logdir, $proto, $ipvnum, $idnum);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
|
||||||
$flags .= "--gopher " if($gopher);
|
$flags .= "--gopher " if($gopher);
|
||||||
$flags .= "--fork " if(defined($fork));
|
$flags .= "--fork " if(defined($fork));
|
||||||
$flags .= "--connect $connect " if($connect);
|
$flags .= "--connect $connect " if($connect);
|
||||||
$flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
|
|
||||||
$flags .= "--ipv$ipvnum --port $port --srcdir \"$srcdir\"";
|
$flags .= "--ipv$ipvnum --port $port --srcdir \"$srcdir\"";
|
||||||
|
|
||||||
if($verbose) {
|
if($verbose) {
|
||||||
|
Loading…
Reference in New Issue
Block a user