From 40e05e5a01d50b381fa7a7a472ea38f44518f02c Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Wed, 18 Sep 2019 18:01:32 -0600 Subject: http: Improve auto HTTP->HTTPS redirects, fix edge cases See https://caddy.community/t/v2-issues-with-multiple-server-blocks-in-caddyfile-style-config/6206/13?u=matt Also print pid when using `caddy start` --- cmd/commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/commands.go b/cmd/commands.go index 4eda720..2526e45 100644 --- a/cmd/commands.go +++ b/cmd/commands.go @@ -130,7 +130,7 @@ func cmdStart() (int, error) { // when one of the goroutines unblocks, we're done and can exit select { case <-success: - fmt.Println("Successfully started Caddy") + fmt.Printf("Successfully started Caddy (pid=%d)\n", cmd.Process.Pid) case err := <-exit: return caddy.ExitCodeFailedStartup, fmt.Errorf("caddy process exited with error: %v", err) -- cgit v1.2.3