Created
January 31, 2018 14:32
-
-
Save aursu/bb6a2ff5c9bca6099aca58b3224ec708 to your computer and use it in GitHub Desktop.
/usr/lib/systemd/system/var-lib-nginx-tmp.mount for in -memory nginx cache on CentOS 7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file is part of systemd. | |
# | |
# systemd is free software; you can redistribute it and/or modify it | |
# under the terms of the GNU Lesser General Public License as published by | |
# the Free Software Foundation; either version 2.1 of the License, or | |
# (at your option) any later version. | |
[Unit] | |
Description=Temporary Directory for nginx | |
ConditionPathIsMountPoint=!/var/lib/nginx/tmp | |
DefaultDependencies=no | |
Conflicts=umount.target | |
Before=nginx.service | |
[Mount] | |
What=tmpfs | |
Where=/var/lib/nginx/tmp | |
Type=tmpfs | |
Options=rw,size=512M | |
# Make 'systemctl enable tmp.mount' work: | |
[Install] | |
WantedBy=nginx.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment