From 4df56c77e380cdfec5e23862f7faa8bd843022e6 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Wed, 13 May 2020 11:28:15 -0600 Subject: cmd: Add pidfile support (closes #3235) --- caddy.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'caddy.go') 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 } -- cgit v1.2.3