Quote:
Originally Posted by EricTRA
Hi,
According to the FHS your scripts/programs should go under /usr. If /usr isn't mounted a lot more stuff will stop working. A lot of programs are saved in /usr. Following the FHS restricts /etc to static configuration files and may not contain binaries. But after all, it's your system, you can put them where you want but if you want to comply with FHS.... Another option which we use at work to put all our specific stuff is /opt, which according to FHS holds optional application software packages. We even save our configuration files there to have it all 'in one place'. You could put your stuff in /opt which would comply also with FHS in my opinion.
Kind regards,
Eric
|
I saw that, but if you look at /etc/init.d scripts they rely on functions that are in /etc.
As for /usr not being mounted problem, I am fixing that, I am moving some binaries to /bin and /sbin so that in the event that /usr may be a partition or a separate drive it will be possible to fix what is wrong with the OS in the event that drive damage or something might occur. So placing the functions in /usr/share/pkgtool is not really a good idea from that standpoint. Because if /usr is a mount and is unmountable there would be no way to fix the system if something did happen.
EDIT:
I found the answer I was looking for, according to the FHS /var/lib is used for variable data
but if you look under optional section you will find /var/lib/pkgtool and for is explanation it says "Packaging support files (optional)" well functions are support files for pkgtools so that is where they really belong. But this also has it's issues, because many people use a separate partition for this because it is very easy to fill up a hard drives full of logs and other variable data, preventing from a system to boot. I might have to use /opt