diff --git a/debian/README.md b/debian/README.md index 280f6585..a3f5d57c 100644 --- a/debian/README.md +++ b/debian/README.md @@ -22,7 +22,7 @@ file size for download/upload, enabling federation, etc. Running ------- -The package uses the `conduwuit.service` systemd unit file to start and +The package uses the [`conduwuit.service`](../configuration.md#example-systemd-unit-file) systemd unit file to start and stop conduwuit. It loads the configuration file mentioned above to set up the environment before running the server. diff --git a/docs/configuration.md b/docs/configuration.md index 70069af0..6627c3b6 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -3,3 +3,9 @@ ``` toml {{#include ../conduwuit-example.toml}} ``` + +# Example systemd unit file + +``` +{{#include ../debian/conduwuit.service}} +``` diff --git a/docs/deploying/generic.md b/docs/deploying/generic.md index abc8cc41..e23c75d4 100644 --- a/docs/deploying/generic.md +++ b/docs/deploying/generic.md @@ -43,7 +43,7 @@ If conduwuit runs behind a router or in a container and has a different public I ## Setting up a systemd service -The systemd unit for conduwuit can be found [here](../../debian/conduwuit.service). You may need to change the `ExecStart=` path to where you placed the conduwuit binary. +The systemd unit for conduwuit can be found [here](../configuration.md#example-systemd-unit-file). You may need to change the `ExecStart=` path to where you placed the conduwuit binary. ## Creating the conduwuit configuration file diff --git a/nix/pkgs/book/default.nix b/nix/pkgs/book/default.nix index 23c6e783..c1e5b8e4 100644 --- a/nix/pkgs/book/default.nix +++ b/nix/pkgs/book/default.nix @@ -16,6 +16,7 @@ stdenv.mkDerivation { "conduwuit-example.toml" "CONTRIBUTING.md" "README.md" + "debian/conduwuit.service" "debian/README.md" "docs" ];