summaryrefslogtreecommitdiff
path: root/caddy.go
diff options
context:
space:
mode:
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 1184bc9..0092641 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
}