Toasty27/codecraft-init-script — comment on commit f160239c63d811d014f85180cfed2b1a2ad70558
File:  line 0
By Toasty27:

I'm thinking maybe we should set up the ramdisk option as a flag that triggers certain changes in the functions. Currently the mc_rd_start function re-uses code from the mc_start function. This isn't really a problem, but I'm using it as an example for convenience. I'm sure that we could add a check for the "ramdisk" flag that runs the code required to safely start the server in a ramdisk, assuming the flag is set, and starts the server normally when the flag isn't set.

For example, "minecraft start --ramdisk" would start the service with a ramdisk. "minecraft start" would obviously start things normally.
It could also be implemented as a variable at the beginning of the file.

The end goal is to fill this script with features that you can adjust and disable/enable by changing the variables declared at the beginning of the script. That way people who aren't quite familiar with shell scripting can make use of this script with minimal effort. You configure the script to do what you want by simply adjust some variables at the beginning of the script.

Of course, setting things up that way probably isn't going to be easy, but I think it's best to keep it in mind as we continue work on the script.