[Unit] Description=sccache distributed compilation build server Documentation=https://github.com/mozilla/sccache/blob/main/docs/DistributedQuickstart.md After=network-online.target Wants=network-online.target # Refuse to start until the operator has created the configuration file. ConditionPathExists=/etc/sccache/server.conf [Service] Type=simple # The build server must run as root: bubblewrap sandboxes each compile. User=root Environment=SCCACHE_NO_DAEMON=1 ExecStart=/usr/bin/sccache-dist server --config /etc/sccache/server.conf Restart=on-failure [Install] WantedBy=multi-user.target