diff options
author | Matthew Holt <[email protected]> | 2020-05-13 11:28:15 -0600 |
---|---|---|
committer | Matthew Holt <[email protected]> | 2020-05-13 11:28:15 -0600 |
commit | 4df56c77e380cdfec5e23862f7faa8bd843022e6 (patch) | |
tree | 09fdf02b4ffc915b520a5249e91e839b0ea997e2 /caddy.go | |
parent | cee5589b9856de299ea6960d60541d851498b7c3 (diff) | |
download | caddy-4df56c77e380cdfec5e23862f7faa8bd843022e6.tar.gz caddy-4df56c77e380cdfec5e23862f7faa8bd843022e6.zip |
cmd: Add pidfile support (closes #3235)
Diffstat (limited to 'caddy.go')
-rw-r--r-- | caddy.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -470,6 +470,9 @@ func stopAndCleanup() error { return err } certmagic.CleanUpOwnLocks() + if pidfile != "" { + os.Remove(pidfile) + } return nil } |