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.
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 thesystemd
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
orrealpath $0
, no?