The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-13-2008
Rocket2DMn Rocket2DMn is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 3
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.
  #2 (permalink)  
Old 11-13-2008
pupp's Avatar
pupp pupp is offline Forum Staff  
cap_10hdx 1
  
 

Join Date: Feb 2008
Location: Jersey Shore
Posts: 562
this is my personal opinion on this. thats not to say i'm right/wrong. again, just how i view it.

/usr/sbin is more for system binaries. sure you could put anything in there but i prefer to keep all my system binaries separate from my 3rd party binaries. i would put my own binaries more in /usr/local/bin. now placing your config file is again up to you but i would keep it with my binary or have a subfolder called include or conf or something. obviously, the binary needs to know where th config file is so ensure this happens.

it really turns into what works for you.
  #3 (permalink)  
Old 11-13-2008
Rocket2DMn Rocket2DMn is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 3
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.
  #4 (permalink)  
Old 11-13-2008
pupp's Avatar
pupp pupp is offline Forum Staff  
cap_10hdx 1
  
 

Join Date: Feb 2008
Location: Jersey Shore
Posts: 562
you can place it anywhere you like. /etc will work as long as the binary knows where the conf file is.
  #5 (permalink)  
Old 11-13-2008
jlliagre jlliagre is online now Forum Advisor  
ɹǝsn sıɹɐlosuǝdo
  
 

Join Date: Dec 2007
Location: Paris
Posts: 1,472
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
  #6 (permalink)  
Old 11-13-2008
Rocket2DMn Rocket2DMn is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 3
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.
Closed Thread

Bookmarks

Tags
config file, rhel, solaris

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:00 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0