Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caddy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
caddy
Commits
c3e07334
Commit
c3e07334
authored
Aug 23, 2016
by
Matthew Holt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only move storage if actually starting a server (closes #1067)
parent
70cbfdc5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
caddy/caddymain/run.go
caddy/caddymain/run.go
+2
-1
No files found.
caddy/caddymain/run.go
View file @
c3e07334
...
@@ -48,7 +48,6 @@ func init() {
...
@@ -48,7 +48,6 @@ func init() {
// Run is Caddy's main() function.
// Run is Caddy's main() function.
func
Run
()
{
func
Run
()
{
flag
.
Parse
()
flag
.
Parse
()
moveStorage
()
// TODO: This is temporary for the 0.9 release, or until most users upgrade to 0.9+
caddy
.
AppName
=
appName
caddy
.
AppName
=
appName
caddy
.
AppVersion
=
appVersion
caddy
.
AppVersion
=
appVersion
...
@@ -92,6 +91,8 @@ func Run() {
...
@@ -92,6 +91,8 @@ func Run() {
os
.
Exit
(
0
)
os
.
Exit
(
0
)
}
}
moveStorage
()
// TODO: This is temporary for the 0.9 release, or until most users upgrade to 0.9+
// Set CPU cap
// Set CPU cap
err
:=
setCPU
(
cpu
)
err
:=
setCPU
(
cpu
)
if
err
!=
nil
{
if
err
!=
nil
{
...
...
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