Fedora Linux Support Community & Resources Center
  #1  
Old 14th November 2010, 03:03 PM
dbg0 Offline
Registered User
 
Join Date: Mar 2009
Posts: 6
linuxfedorafirefox
Question A proper location for config file?

Hi all,

Could you recommend a proper location for a configuration file? I see two possible options:

1. /etc/name.conf, or
2. /ect/sysconfig/name

Which one is better?

Thanks,
dbg0.

Last edited by dbg0; 14th November 2010 at 11:01 PM. Reason: Typo fixed.
Reply With Quote
  #2  
Old 14th November 2010, 09:26 PM
sonoran's Avatar
sonoran Offline
Registered User
 
Join Date: May 2005
Location: Sonoran Desert
Posts: 2,136
linuxfirefox
Re: A proper location for config file?

Without knowing the nature of the program, I would say 1. Or, if it is something that individual users would want to configure differently, then /home/user/. Possibly both: main program configuration in /etc, individual user configurations (interface, fonts, themes) in /homes.
Reply With Quote
  #3  
Old 14th November 2010, 11:00 PM
dbg0 Offline
Registered User
 
Join Date: Mar 2009
Posts: 6
linuxfedorafirefox
Re: A proper location for config file?

Quote:
Originally Posted by sonoran View Post
Without knowing the nature of the program, I would say 1. Or, if it is something that individual users would want to configure differently, then /home/user/. Possibly both: main program configuration in /etc, individual user configurations (interface, fonts, themes) in /homes.
It's a system-wide service, nothing user-specific to configure, so /home/user is not applicable.
Reply With Quote
  #4  
Old 14th November 2010, 11:40 PM
sonoran's Avatar
sonoran Offline
Registered User
 
Join Date: May 2005
Location: Sonoran Desert
Posts: 2,136
linuxfirefox
Re: A proper location for config file?

/etc/sysconfig is not used by all linux distros. Arch, for example, doesn't have it, and discourages packages that create such directories purely for their own use. So I guess it depends on how portable you want your package to be.
Reply With Quote
  #5  
Old 15th November 2010, 08:47 PM
dbg0 Offline
Registered User
 
Join Date: Mar 2009
Posts: 6
linuxfedorafirefox
Re: A proper location for config file?

Quote:
Originally Posted by sonoran View Post
/etc/sysconfig is not used by all linux distros. Arch, for example, doesn't have it, and discourages packages that create such directories purely for their own use. So I guess it depends on how portable you want your package to be.
Ok, thanks.
Reply With Quote
Reply

Tags
config, file, location, proper

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
General Software RAID question - config location captainkrypto Servers & Networking 0 12th January 2009 03:07 PM
File Location Question jazzer386 Using Fedora 5 26th August 2008 10:52 PM
Find the location of a file yinglcs Using Fedora 6 9th January 2007 07:28 AM
PHP browscap.ini File location FC5 mick-porter Using Fedora 2 10th April 2006 08:51 AM
Location of Mouse Config? wedge40 Using Fedora 5 3rd April 2005 11:01 PM


Current GMT-time: 10:29 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat