aboutsummaryrefslogtreecommitdiffhomepage
path: root/caddy.go
diff options
context:
space:
mode:
authorMatthew Holt <[email protected]>2020-05-13 11:28:15 -0600
committerMatthew Holt <[email protected]>2020-05-13 11:28:15 -0600
commit4df56c77e380cdfec5e23862f7faa8bd843022e6 (patch)
tree09fdf02b4ffc915b520a5249e91e839b0ea997e2 /caddy.go
parentcee5589b9856de299ea6960d60541d851498b7c3 (diff)
downloadcaddy-4df56c77e380cdfec5e23862f7faa8bd843022e6.tar.gz
caddy-4df56c77e380cdfec5e23862f7faa8bd843022e6.zip
cmd: Add pidfile support (closes #3235)
Diffstat (limited to 'caddy.go')
-rw-r--r--caddy.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/caddy.go b/caddy.go
index 1184bc979..009264102 100644
--- a/caddy.go
+++ b/caddy.go
@@ -470,6 +470,9 @@ func stopAndCleanup() error {
return err
}
certmagic.CleanUpOwnLocks()
+ if pidfile != "" {
+ os.Remove(pidfile)
+ }
return nil
}