Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

systemd Service Setup

Each docs.rs systemd service has a configuration file in dotenv format. systemd reads these files to provide the environment in which the services run.

servicesystemd service nameservice config
main daemondocs.rs/home/cratesfyi/.docs-rs-env
second builderdocs.rs.builder/home/cratesfyi/.docs-rs-builder-env
third builderdocs.rs.builder3/home/cratesfyi/.docs-rs-builder3-env
fourth builderdocs.rs.builder4/home/cratesfyi/.docs-rs-builder4-env
dockerdocker
nginxnginx
prune-disk-spaceprune-disk-space

prune-disk-space

This scheduled daily systemd task performs cleanup to free disk space.

The cleanup commands and schedule are configured in /etc/systemd/system/prune-disk-space.{service,timer}.

# example, at the time of writing
docker container prune --force
docker image prune --force
cargo-sweep sweep /home/ubuntu/docs.rs --installed