 |
 |
 |
 |
| Programming & Packaging A place to discuss programming and packaging. |

14th November 2010, 03:03 PM
|
|
Registered User
|
|
Join Date: Mar 2009
Posts: 6

|
|
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.
|

14th November 2010, 09:26 PM
|
 |
Registered User
|
|
Join Date: May 2005
Location: Sonoran Desert
Posts: 2,136

|
|
|
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.
|

14th November 2010, 11:00 PM
|
|
Registered User
|
|
Join Date: Mar 2009
Posts: 6

|
|
|
Re: A proper location for config file?
Quote:
Originally Posted by sonoran
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.
|

14th November 2010, 11:40 PM
|
 |
Registered User
|
|
Join Date: May 2005
Location: Sonoran Desert
Posts: 2,136

|
|
|
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.
|

15th November 2010, 08:47 PM
|
|
Registered User
|
|
Join Date: Mar 2009
Posts: 6

|
|
|
Re: A proper location for config file?
Quote:
Originally Posted by sonoran
/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.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 10:29 (Wednesday, 19-06-2013)
|
|
 |
 |
 |
 |
|
|