forked from petersenna/tmpfs-ccache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
34 lines (34 loc) · 1.16 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# 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