View Full Version : A proper location for config file?
dbg0
14th November 2010, 03:03 PM
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.
sonoran
14th November 2010, 09:26 PM
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.
dbg0
14th November 2010, 11:00 PM
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.
sonoran
14th November 2010, 11:40 PM
/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.
dbg0
15th November 2010, 08:47 PM
/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.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.