Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
9d304774
Commit
9d304774
authored
May 26, 2015
by
Eric Paris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
report glog error if unable to tell systemd things worked
parent
28ac1b33
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
server.go
cmd/kube-apiserver/app/server.go
+8
-2
No files found.
cmd/kube-apiserver/app/server.go
View file @
9d304774
...
...
@@ -456,7 +456,10 @@ func (s *APIServer) Run(_ []string) error {
glog
.
Infof
(
"Using self-signed cert (%s, %s)"
,
s
.
TLSCertFile
,
s
.
TLSPrivateKeyFile
)
}
}
_
=
systemd
.
SdNotify
(
"READY=1
\n
"
)
// err == systemd.SdNotifyNoSocket when not running on a systemd system
if
err
:=
systemd
.
SdNotify
(
"READY=1
\n
"
);
err
!=
nil
&&
err
!=
systemd
.
SdNotifyNoSocket
{
glog
.
Errorf
(
"Unable to send systemd daemon sucessful start message: %v
\n
"
,
err
)
}
if
err
:=
secureServer
.
ListenAndServeTLS
(
s
.
TLSCertFile
,
s
.
TLSPrivateKeyFile
);
err
!=
nil
{
glog
.
Errorf
(
"Unable to listen for secure (%v); will try again."
,
err
)
}
...
...
@@ -472,7 +475,10 @@ func (s *APIServer) Run(_ []string) error {
MaxHeaderBytes
:
1
<<
20
,
}
if
secureLocation
==
""
{
_
=
systemd
.
SdNotify
(
"READY=1
\n
"
)
// err == systemd.SdNotifyNoSocket when not running on a systemd system
if
err
:=
systemd
.
SdNotify
(
"READY=1
\n
"
);
err
!=
nil
&&
err
!=
systemd
.
SdNotifyNoSocket
{
glog
.
Errorf
(
"Unable to send systemd daemon sucessful start message: %v
\n
"
,
err
)
}
}
glog
.
Infof
(
"Serving insecurely on %s"
,
insecureLocation
)
glog
.
Fatal
(
http
.
ListenAndServe
())
...
...
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