![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems . |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Config File with ksh | lucae | Shell Programming and Scripting | 2 | 10-20-2008 05:57 AM |
| removing a line from a file and then placing into another file | iago | UNIX for Dummies Questions & Answers | 1 | 09-09-2007 02:46 AM |
| Extracting data from text file based on configuration set in config file | suparnbector | Shell Programming and Scripting | 3 | 08-10-2007 03:25 AM |
| Placing lines file in array | ThomasvdH | Shell Programming and Scripting | 4 | 10-19-2006 01:33 PM |
| Placing a IP ban | Martijn v/d Meu | Security | 3 | 10-18-2001 11:25 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Placing a config file
Hi all,
I need to place a custom configuration file for a script/program that will likely be sitting in /usr/sbin, but I am unsure of exactly where to place it. In RHEL was told the config file should be in /etc/sysconfig, but no such directory exists in Solaris. Will my config file simply sit in /etc ? If so, would you happen to know if it is also acceptable to place the config file directly under /etc in RHEL (for consistency)? TIA. |
|
||||
|
Thank you pupp. This script/program is acting as a system binary, so that's where I have been told to place it. As of now I am using /etc/sysconfig in RHEL and /etc in Solaris for the config files that go with it. The main question I have is if /etc is an OK place to put these in Solaris since /etc/sysconfig is being using in RHEL.
|
|
||||
|
You shouldn't place your script in /usr/sbin and the configuration file(s) directly under /etc as these directories belongs to the OS.
One supported location would be /opt/<package name>/sbin for the script and /etc/opt/<package name> for the configuration file. If your development isn't packaged or if you have no name for the whole, you might use /opt/local/sbin and /etc/opt/local. Have a look at this recent thread for the rationale: I have a silly question |
|
||||
|
Yeah we ultimately decided the script and configs should go somewhere else (for now...). The /opt directory was where I had the stuff initially, before I was told to move it. It would seem that the "standards" are a bit varied and differ based on personal preference or company standards. For now, we have settled on a custom directory elsewhere. Thank you both for your input.
Cheers. |
![]() |
| Bookmarks |
| Tags |
| config file, rhel, solaris |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|