Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
lemonldap-ng
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xavier Bachelot
lemonldap-ng
Commits
5c6e3307
Commit
5c6e3307
authored
Feb 08, 2018
by
Xavier Guimard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better debug for FastCGI (#1369)
parent
ab973c47
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
fastcgi-server/sbin/llng-fastcgi-server
fastcgi-server/sbin/llng-fastcgi-server
+12
-10
No files found.
fastcgi-server/sbin/llng-fastcgi-server
View file @
5c6e3307
...
...
@@ -10,10 +10,9 @@ use Lemonldap::NG::Handler::Main::Reload;
our
$
VERSION
=
'2.0.0'
;
our
(
$
foreground
,
$
engine
,
$
nproc
,
$
pidFile
,
$
socket
,
$
user
,
$
listen
,
$
group
,
$
customFunctionsFile
,
%
plackOptions
$
foreground
,
$
engine
,
$
nproc
,
$
pidFile
,
$
socket
,
$
user
,
$
listen
,
$
group
,
$
customFunctionsFile
,
%
plackOptions
);
my
%
_apps
;
...
...
@@ -92,6 +91,9 @@ my %builder = (
my
$
script
=
$
_
[
0
]->{
SCRIPT_FILENAME
};
return
$
_apps
{$
script
}->(@
_
)
if
(
$
_apps
{$
script
}
);
$
_apps
{$
script
}
=
do
$
script
;
unless
(
$
_apps
{$
script
}
and
ref
$
_apps
{$
script
}
)
{
die
"Unable to load $_[0]->{SCRIPT_FILENAME}"
;
}
return
$
_apps
{$
script
}->(@
_
);
}
},
...
...
@@ -123,7 +125,7 @@ $server->parse_options(
'--pid'
=>
$
pidFile
,
'--nproc'
=>
$
nproc
,
'--socket'
=>
$
socket
,
(
$
listen
?
(
'--listen'
,
$
listen
)
:
()
),
(
$
listen
?
(
'--listen'
,
$
listen
)
:
()
),
'--proc-title'
=>
'llng-fastcgi-server'
,
(
$
foreground
?
()
:
'--daemonize'
),
'--no-default-middleware'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment