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
69650758
Commit
69650758
authored
Jun 13, 2018
by
Denis
Committed by
Matt Holt
Jun 12, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core: instance restart (reload) event (#2178)
parent
e54dfa49
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
plugins.go
plugins.go
+4
-3
sigtrap_posix.go
sigtrap_posix.go
+1
-0
No files found.
plugins.go
View file @
69650758
...
...
@@ -263,9 +263,10 @@ type EventName string
// Define names for the various events
const
(
StartupEvent
EventName
=
"startup"
ShutdownEvent
EventName
=
"shutdown"
CertRenewEvent
EventName
=
"certrenew"
InstanceStartupEvent
EventName
=
"instancestartup"
ShutdownEvent
=
"shutdown"
CertRenewEvent
=
"certrenew"
InstanceStartupEvent
=
"instancestartup"
InstanceRestartEvent
=
"instancerestart"
)
// EventHook is a type which holds information about a startup hook plugin.
...
...
sigtrap_posix.go
View file @
69650758
...
...
@@ -90,6 +90,7 @@ func trapSignalsPosix() {
purgeEventHooks
()
// Kick off the restart; our work is done
EmitEvent
(
InstanceRestartEvent
,
nil
)
_
,
err
=
inst
.
Restart
(
caddyfileToUse
)
if
err
!=
nil
{
restoreEventHooks
(
oldEventHooks
)
...
...
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