[opensuse] Where to put my custom scripts to follow FHS
So, I am going to distribute some custom scripts to all my boxes and am having a hardtime coming up with where I want them to go.. Currently I am pondering: /usr/sbin/folder Which would have the following /usr/sbin/folder/bin /usr/sbin/folder/abin and some other various stuff required for my scripts.. Would that path stay in accordance with the FHS? Thanks Ben -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 16 July 2008 19:02:32 Ben Kevan wrote:
So,
I am going to distribute some custom scripts to all my boxes and am having a hardtime coming up with where I want them to go..
Currently I am pondering:
/usr/sbin/folder
Which would have the following
/usr/sbin/folder/bin /usr/sbin/folder/abin and some other various stuff required for my scripts..
Would that path stay in accordance with the FHS?
No, either /usr/local/bin or /opt/<package>/bin is where things should go abin I have never seen before. What would that be? Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 16 July 2008 10:14:10 am Anders Johansson wrote:
On Wednesday 16 July 2008 19:02:32 Ben Kevan wrote:
So,
I am going to distribute some custom scripts to all my boxes and am having a hardtime coming up with where I want them to go..
Currently I am pondering:
/usr/sbin/folder
Which would have the following
/usr/sbin/folder/bin /usr/sbin/folder/abin and some other various stuff required for my scripts..
Would that path stay in accordance with the FHS?
No, either /usr/local/bin or /opt/<package>/bin is where things should go
abin I have never seen before. What would that be?
Anders
abin is for automatic binaries that will be ran via cron (just separation for me to keep the bin dir less cluttered). maybe i'll just put all the admin task stuff into sbin and the stuff from abin into bin .. What are your thoughts on that? Thank you for your quick responses. Ben -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Ben Kevan wrote:
On Wednesday 16 July 2008 10:14:10 am Anders Johansson wrote:
On Wednesday 16 July 2008 19:02:32 Ben Kevan wrote:
So,
I am going to distribute some custom scripts to all my boxes and am having a hardtime coming up with where I want them to go..
Currently I am pondering:
/usr/sbin/folder
Which would have the following
/usr/sbin/folder/bin /usr/sbin/folder/abin and some other various stuff required for my scripts..
Would that path stay in accordance with the FHS?
No, either /usr/local/bin or /opt/<package>/bin is where things should go
abin I have never seen before. What would that be?
Anders
abin is for automatic binaries that will be ran via cron (just separation for me to keep the bin dir less cluttered).
maybe i'll just put all the admin task stuff into sbin and the stuff from abin into bin .. What are your thoughts on that?
Why invent new paths? /usr/local/bin is the customary unix path for local scripts and binaries, and /usr/local/sbin specifically for system level scripts and binaries. Definitely go with the established standards, it makes life more sane. Joe -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 16 July 2008 11:17:04 am J Sloan wrote:
abin is for automatic binaries that will be ran via cron (just separation for me to keep the bin dir less cluttered).
maybe i'll just put all the admin task stuff into sbin and the stuff from abin into bin .. What are your thoughts on that?
Why invent new paths? /usr/local/bin is the customary unix path for local scripts and binaries, and /usr/local/sbin specifically for system level scripts and binaries. Definitely go with the established standards, it makes life more sane.
Joe
Hi Joe, I am going to go with bin / sbin (bin for the ones my cron jobs use and sbin for the system admin scripts that I previously had in bin).. I am just having a hard time trying to decide to put some other things that I need to push out to all these boxes. Here's an example of some stuff that would be there: bin sbin crontab.dist (a crontab that I will have append to all machines with stuff I want) distlist (the list of what should be distributed) sahead (system admin header (has a ton of commonly used variables) saenv.setup (setting up the sys admin environment) sudoers (common sudoers across all servers) I know to use: /usr/local/bin and /usr/local/sbin But I can't put the others on the root of /usr/local .. where in /usr/local should I then put them? Thanks -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Wednesday 2008-07-16 at 13:27 -0700, Ben Kevan wrote:
/usr/local/bin and /usr/local/sbin
But I can't put the others on the root of /usr/local .. where in /usr/local should I then put them?
You have /usr/local/var, /usr/local/etc, /usr/local/usr... everything. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFIfn05tTMYHG2NR9URArsrAJ9q6+zchOL1pD4kouY6nmzDVhXuXACcCwpX qZOZiWnCrFo7iIO0CpjX/ao= =NNYM -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
"Carlos E. R."
The Wednesday 2008-07-16 at 13:27 -0700, Ben Kevan wrote: You have /usr/local/var, /usr/local/etc, /usr/local/usr... everything.
Yes. To the OP: you should really read the FHS. Here is a short run down of the hierarchies: 1. "/" - root of the file system. /bin. /sbin. and /lib contains everything that can boot the machine. The binaries in /bin and /sbin should either be staticaly linked or only linked to libraries in /lib since the other prefixes can be from anywhere and there is no guarentee that they are mounted. 2. "/usr and /usr/X11R6": This is where the distro's packages are unsually installed. /usr/bin is traditionally used for console apps where as /usr/X11R6 for graphical and of course /usr/sbin for admin programs. However, the trend these days is to dump all usr apps in /usr (which I dislike). This heirachy is also traditionally used for site wide packages (for example, through a NFS mount from a central server). 3. "/opt": Large third party subsystems. This can be site wide too. Out of all the Linux distro, it seems like only SUSE use this hierachy heavily. 4. "/usr/local": Local packages specific to the machine. All non-distro packages should be installed here. Charles
On Wednesday 16 July 2008 04:29:32 pm Charles philip Chan wrote:
"Carlos E. R."
writes:
The Wednesday 2008-07-16 at 13:27 -0700, Ben Kevan wrote: You have /usr/local/var, /usr/local/etc, /usr/local/usr... everything.
Yes. To the OP: you should really read the FHS. Here is a short run down of the hierarchies:
1. "/" - root of the file system. /bin. /sbin. and /lib contains everything that can boot the machine. The binaries in /bin and /sbin should either be staticaly linked or only linked to libraries in /lib since the other prefixes can be from anywhere and there is no guarentee that they are mounted.
2. "/usr and /usr/X11R6": This is where the distro's packages are unsually installed. /usr/bin is traditionally used for console apps where as /usr/X11R6 for graphical and of course /usr/sbin for admin programs. However, the trend these days is to dump all usr apps in /usr (which I dislike). This heirachy is also traditionally used for site wide packages (for example, through a NFS mount from a central server).
3. "/opt": Large third party subsystems. This can be site wide too. Out of all the Linux distro, it seems like only SUSE use this hierachy heavily.
4. "/usr/local": Local packages specific to the machine. All non-distro packages should be installed here.
Charles
Hi Charles, I have read FHS and it seems that it should go into /usr/local but how about the other things I need to transfer? Like the header file for my scripts? It's not really a binary and there is no /usr/local/etc or /usr/local/var that I would consider them belonging in. Charles.. here is the current directory structure I am going to move from ~ into a rsync'ed location across servers: aliases.client (file) aliases.master (file) sbin/ (directory with admin binaries) crontab.dist (file) dlist (file - depreciate and will use rsync) RCS/ (will be moved into a source directory) .saenv (file) saenv.setup (file) sahead (file) stamp/ (directory - possible depreciate, and use file timestamps to check for changes and updating of sudoers / cron / saenv.setup) sudoers I can obviously see that sbin would go to /usr/local/sbin .. But where would I put the others? Again this is stuff that would be pulled via rsync (or possibly scp) on a nightly schedule. That's where I am confused.. Not the sbin or bin directories. Thanks for everynoes help. Ben -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Ben Kevan
I have read FHS and it seems that it should go into /usr/local but how about the other things I need to transfer? Like the header file for my scripts? It's not really a binary and there is no /usr/local/etc or /usr/local/var that I would consider them belonging in. Charles.. here is the current directory structure I am going to move from ~ into a rsync'ed location across servers:
For etc. I suggest you should create and use /usr/local/etc. As for var, although you can uses /usr/local/var, IMHO you should just use /var, since this is where all variable data goes. Charles
On Wednesday 16 July 2008 08:24:54 pm Charles philip Chan wrote:
Ben Kevan
writes: I have read FHS and it seems that it should go into /usr/local but how about the other things I need to transfer? Like the header file for my scripts? It's not really a binary and there is no /usr/local/etc or /usr/local/var that I would consider them belonging in. Charles.. here is the current directory structure I am going to move from ~ into a rsync'ed location across servers:
For etc. I suggest you should create and use /usr/local/etc. As for var, although you can uses /usr/local/var, IMHO you should just use /var, since this is where all variable data goes.
Charles
I wouldn't use /usr/local/etc since it's slated to get removed in later version of FHS. Also, those scripts that are in the root actually make static data (some host specific which gets written to /etc/saenv). It would also complicate the rsync or scp as I would then have to do multiple locations. I may for the ease of everything just put it in /opt/distributed or /opt/companyname and have a bin / sbin and the other root stuff in the root of that directory. Then i'd only have to sync 1 location. Ben -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Ben Kevan wrote:
So,
I am going to distribute some custom scripts to all my boxes and am having a hardtime coming up with where I want them to go..
Currently I am pondering:
/usr/sbin/folder
Which would have the following
/usr/sbin/folder/bin /usr/sbin/folder/abin and some other various stuff required for my scripts..
Would that path stay in accordance with the FHS?
Perhaps /usr/local/bin ? -- Use OpenOffice.org http://www.openoffice.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (6)
-
Anders Johansson
-
Ben Kevan
-
Carlos E. R.
-
Charles philip Chan
-
J Sloan
-
James Knott