Skip to content

Systemd scripts for putting ccache in tmpfs in a boot persistent way

Notifications You must be signed in to change notification settings

richiware/tmpfs-ccache

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

# Licensed under GPLv2
# Peter Senna Tschudin Dec 1, 2012
#
# This is for storing ccache files on tmpfs in a boot persistent way using 
# systemd service. The service should be started before compiling and 
# should be stopped before shutting down the computer.
#
# Important: Wait for the service to finish starting/stopping before going on.
# The message: done. will be printed on /var/log/messages.
#
# Install instructions:
# # cp etc/tmpfs-ccache /etc
# # cp etc/systemd/system/tmpfs-ccache.service /etc/systemd/system
# # cp usr/local/bin/tmpfs-ccache-user.sh /usr/local/bin
# # cp usr/local/bin/tmpfs-ccache-service.sh /usr/local/bin
#
# After copying files, edit:
# /etc/tmpfs-ccache
#
# Start the service with:
# # systemctl start tmpfs-ccache.service
#
# Stop the service with:
# # systemctl stop tmpfs-ccache.service
#
# As regular user, run before starting compilation:
# ( The . before the script path is important. Allows setting CCACHE_DIR
# environment variable )
#
# $ . /usr/local/bin/tmpfs-ccache-user.sh
#
# Note that this may not be good idea due memory consumption, but for
# automatic start / stop the service on boot:
# # systemctl enable tmpfs-ccache.service

About

Systemd scripts for putting ccache in tmpfs in a boot persistent way

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%