Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
6f363153
Commit
6f363153
authored
Mar 22, 2018
by
Julian Kornberger
Committed by
Leonard Gram
Mar 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust permissions of unix socket
fixes #8358
parent
e84f746d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
pkg/api/http_server.go
+4
-1
No files found.
pkg/api/http_server.go
View file @
6f363153
...
...
@@ -74,12 +74,15 @@ func (hs *HTTPServer) Start(ctx context.Context) error {
return
nil
}
case
setting
.
SOCKET
:
ln
,
err
:=
net
.
Listen
(
"unix"
,
setting
.
SocketPath
)
ln
,
err
:=
net
.
Listen
Unix
(
"unix"
,
&
net
.
UnixAddr
{
Name
:
setting
.
SocketPath
,
Net
:
"unix"
}
)
if
err
!=
nil
{
hs
.
log
.
Debug
(
"server was shutdown gracefully"
)
return
nil
}
// Make socket writable by group
os
.
Chmod
(
setting
.
SocketPath
,
0660
)
err
=
hs
.
httpSrv
.
Serve
(
ln
)
if
err
!=
nil
{
hs
.
log
.
Debug
(
"server was shutdown gracefully"
)
...
...
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