From 5f09f05e0825f0835691788699d32698faa55a54 Mon Sep 17 00:00:00 2001 From: Francis Lavoie Date: Wed, 11 Aug 2021 19:08:47 -0400 Subject: [PATCH] docs: Add new "Keep Caddy Running" page, moved from install.md (#181) * docs: Add new Linux Service page, moved from install.md * Apply suggestions from code review Co-authored-by: Carl George * Add note regarding resetting Exec* * Updates to make the page more generalized Docker * Polish the Windows Service docs a bit Co-authored-by: Carl George --- src/docs/markdown/command-line.md | 2 +- src/docs/markdown/install.md | 128 ++---------------- src/docs/markdown/running.md | 214 ++++++++++++++++++++++++++++++ src/docs/markdown/v2-upgrade.md | 7 +- src/includes/docs-nav.html | 1 + 5 files changed, 229 insertions(+), 123 deletions(-) create mode 100644 src/docs/markdown/running.md diff --git a/src/docs/markdown/command-line.md b/src/docs/markdown/command-line.md index 6b7ea4f..7f577c1 100644 --- a/src/docs/markdown/command-line.md +++ b/src/docs/markdown/command-line.md @@ -311,7 +311,7 @@ Same as [`caddy run`](#caddy-run), but in the background. This command only bloc Note: the flag `--config` doesn't support `-` to read the config from stdin. -Use of this command is discouraged with system services or on Windows. On Windows, the child process will remain attached to the terminal, so closing the window will forcefully stop Caddy, which is not obvious. +Use of this command is discouraged with system services or on Windows. On Windows, the child process will remain attached to the terminal, so closing the window will forcefully stop Caddy, which is not obvious. Consider running Caddy [as a service](/docs/running) instead. Once started, you can use [`caddy stop`](#caddy-stop) or [the /stop API endpoint](/docs/api#post-stop) to exit the background process. diff --git a/src/docs/markdown/install.md b/src/docs/markdown/install.md index 2ed8c77..36f3082 100644 --- a/src/docs/markdown/install.md +++ b/src/docs/markdown/install.md @@ -14,7 +14,6 @@ This page describes various methods for installing Caddy on your system. - [Arch Linux, Manjaro, Parabola](#arch-linux-manjaro-parabola) - [Docker](#docker) - [DigitalOcean](#digitalocean) -- [Linux service](#linux-service)