I prefer to have manually installed scripts under /usr/local/ folder. So I've put the script at /usr/local/sbin/folder2ram. Then when running the systemd configuration, it generates the services files using hard coded script path as /sbin/folder2ram.
It would have been nice if the script generate unit files using the real and current installation path.
It could have used which or realpath $0, no?
I prefer to have manually installed scripts under
/usr/local/folder. So I've put the script at/usr/local/sbin/folder2ram. Then when running thesystemdconfiguration, it generates the services files using hard coded script path as/sbin/folder2ram.It would have been nice if the script generate unit files using the real and current installation path.
It could have used
whichorrealpath $0, no?