-
Notifications
You must be signed in to change notification settings - Fork 0
Tmpfs configuration
7thCore edited this page Jan 20, 2022
·
1 revision
This is optional. You can skip this and the script will use it's default values (tmpfs being disabled).
You can run this function with root privileges so the script can add the tmpfs line to /etc/fstab or it can be executed with the hlnsrv user to only change the configuration value in the script's configuration file but you will have to add the tmpfs line to /etc/fstab manually.
Run the script with root privliges and follow the instructions:
sudo hlnsrv-script config_tmpfs
To create a ramdisk manually you need to get the user id of the hlnsrv user:
id -u hlnsrv
Add the following to your fstab with the user id:
/etc/fstab
tmpfs /srv/hlnsrv/tmpfs tmpfs rw,size=8G,uid=<user-id>,mode=0777 0 0
The size value is for the size of your tmpfs/ramdisk. 8G is for 8 gigabytes.
Change the value in the script configuration file to 1:
/srv/hlnsrv/config/hlnsrv-script.conf
script_tmpfs=1
Reload user services:
hlnsrv-script reload_services