Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
id
auth
Commits
288cf94e
Commit
288cf94e
authored
Nov 07, 2020
by
ale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Systemd socket activation takes precedence over --socket
parent
284580fc
Pipeline
#8378
passed with stages
in 1 minute and 49 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
cmd/auth-server/main.go
cmd/auth-server/main.go
+7
-7
No files found.
cmd/auth-server/main.go
View file @
288cf94e
...
...
@@ -125,13 +125,7 @@ func main() {
srv
.
RequestTimeout
=
*
requestTimeout
var
servers
[]
genericServer
if
*
socketPath
!=
""
{
l
,
err
:=
lineproto
.
NewUNIXSocketListener
(
*
socketPath
)
if
err
!=
nil
{
log
.
Fatal
(
err
)
}
servers
=
append
(
servers
,
lineproto
.
NewServer
(
"unix"
,
l
,
srv
))
}
// For legacy reasons, systemd-socket takes precedence over socket.
if
*
systemdSocketActivation
{
ll
,
err
:=
activation
.
Listeners
()
if
err
!=
nil
{
...
...
@@ -140,6 +134,12 @@ func main() {
for
_
,
l
:=
range
ll
{
servers
=
append
(
servers
,
lineproto
.
NewServer
(
"systemd"
,
l
,
srv
))
}
}
else
if
*
socketPath
!=
""
{
l
,
err
:=
lineproto
.
NewUNIXSocketListener
(
*
socketPath
)
if
err
!=
nil
{
log
.
Fatal
(
err
)
}
servers
=
append
(
servers
,
lineproto
.
NewServer
(
"unix"
,
l
,
srv
))
}
if
*
tcpAddr
!=
""
{
var
llsrv
lineproto
.
Handler
=
srv
...
...
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