Closed chris5560 closed 6 months ago
Thanks for the contributions, I'm sorry but I don't agree with everything you proposed. I added comments to some parts that I hope explain why. When you revert the changes I ask, I will test it and merge the PR
I'll take a look.
everywhere replace TIMEOUT=2m with TIMEOUT=120 because sleep used inside init.d-scripts and TIMEOUT used inside systemd scripts only accept seconds
new global variable binFILE => detect where folder2ram installed for use wherever needed to remove absoulte path and filename should fix Issue #22
new function read_config_file() return the content of config file without comments etc.
function write_initscript() read timeout from configuration replace "cat << 'EOF'" with "cat << EOF" (without "'") so we can use environment of function add "\" before "$" where needed
function write_systemd_startup_service() read timeout from configuration replace "cat << 'EOF'" with "cat << EOF" (without "'") so we can use environment of function add "\" before "$" where needed modify ExecStart to suppress problems with journald add ExecStop commands so write_systemd_shutdown_service() no longer needed, also remove dependency to lvm2 package (blk-availability.service) Issue #21
function write_systemd_service_cleanup() change TimeoutSec to 180 seconds (seconds required) reduce to 3 minutes otherwise shutdown will be blocked up to 30 minutes
function write_systemd_shutdown_service() completely removed including all other usages
function write_systemd_service_cleanup() set TimeoutSec=1800 (30 min x 60 sec)
functions read_type(), read_mount_point(), read_options() use new function read_config_file() should fix Issue #26, dependency to use two tabstops between parameters
function cleaner_script_generic() add read_config_file() to use reading configuration add generate_mount_name() otherwise folder2ram_cleaner script not working because LOCKFILE not set correctly