From f655da2c2e6b33df0d2f44c905becc44193747ba Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Thu, 14 May 2020 10:19:14 -0600 Subject: [PATCH] docs: --pidfile flag --- src/docs/markdown/command-line.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/docs/markdown/command-line.md b/src/docs/markdown/command-line.md index 8df54b1..ed7bacd 100644 --- a/src/docs/markdown/command-line.md +++ b/src/docs/markdown/command-line.md @@ -250,6 +250,7 @@ This command disables the admin API so it is easier to run multiple instances on
caddy run
 	[--config <path>]
 	[--adapter <name>]
+	[--pidfile <file>]
 	[--environ]
 	[--resume]
 	[--watch]
@@ -260,6 +261,8 @@ Runs Caddy and blocks indefinitely; i.e. "daemon" mode. `--adapter` is the name of the config adapter to use when loading the initial config, if any. This flag is not necessary if the `--config` filename starts with "Caddyfile" which assumes the `caddyfile` adapter. Otherwise, this flag is required if the provided config file is not in Caddy's native JSON format. Any warnings will be printed to the log, but beware that any adaptation without errors will immediately be used, even if there are warnings. If you want to review the results of the adaptation first, use the [`caddy adapt`](#caddy-adapt) subcommand. +`--pidfile` writes the PID to the specified file. + `--environ` prints out the environment before starting. This is the same as the `caddy environ` command, but does not exit after printing. `--resume` uses the last loaded configuration, overriding the `--config` flag (if present) if a previous config was saved. Using this flag guarantees config durability through machine reboots or process restarts. It is most useful in [API](/docs/api)-heavy deployments. @@ -277,6 +280,7 @@ Runs Caddy and blocks indefinitely; i.e. "daemon" mode.
caddy start
 	[--config <path>]
 	[--adapter <name>]
+	[--pidfile <file>]
 	[--watch]
Same as [`caddy run`](#caddy-run), but in the background. This command only blocks until the background process is running successfully (or fails to run), then returns.