Skip to content

Instantly share code, notes, and snippets.

@gferon
Created April 12, 2019 07:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gferon/1a652faba2e3cd3120695d2164d378ff to your computer and use it in GitHub Desktop.
Save gferon/1a652faba2e3cd3120695d2164d378ff to your computer and use it in GitHub Desktop.
systemd unit file for sccache

After installing sccache, drop this file in ~/.config/systemd/user/, then:

systemctl --user daemon-reload
systemctl enable --now sccache
[Install]
WantedBy=default.target
[Service]
Type=forking
ExecStart=%h/.cargo/bin/sccache --start-server
ExecStop=%h/.cargo/bin/sccache --stop-server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment