From: "Canek Peláez Valdés" <caneko@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] transferring contents of /etc/conf.d to the config files
Date: Mon, 10 Oct 2011 10:56:15 -0700 [thread overview]
Message-ID: <CADPrc80J_iJtHDx_HOg4nRVLZsmAL0KYdC0X9rL1fQQf50HC3Q@mail.gmail.com> (raw)
In-Reply-To: <20111010173352.GA2844@solfire>
On Mon, Oct 10, 2011 at 10:33 AM, <meino.cramer@gmx.de> wrote:
> Hi,
>
> I have read several docs to figure out this...all docs do changes
> in /etc/conf.d but I found no hint how to transfer that settings
> to the "real" configuration files of the according programs.
>
> env-update & etc-update do not help...
>
> What tool do I have to call to acchieve this?
/etc/conf.d is like /etc/sysconfig in RedHat/Fedora and /etc/default
in Debian: they were introduced to pass environment variables and
(cometimes) extra arguments to the daemons in /etc/init.d.
So, if you have /etc/init.d/foo, you can put environment variables and
(perhaps) extra args for the daemon in /etc/conf.d/foo. You don't need
to "transfer" anything; when you do
/etc/init.d/foo start
the variables in /etc/conf.d/foo are readed and passed to the daemon.
It's a distro specific directory (again, like /etc/sysconfig in
RedHat/Fedora and /etc/default in Debian), and the "real"
configuration of the daemon will probably be on /etc/foo (if at all).
The new init systemd doesn't need this kind of distro-specific thing,
instead pushing the configuration where it belongs, only in /etc/foo
(or whatever). I highly recommend it.
Regards.
--
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México
prev parent reply other threads:[~2011-10-10 17:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-10 17:33 [gentoo-user] transferring contents of /etc/conf.d to the config files meino.cramer
2011-10-10 17:47 ` [gentoo-user] " Nikos Chantziaras
2011-10-10 18:45 ` meino.cramer
2011-10-10 18:53 ` Nikos Chantziaras
2011-10-10 19:13 ` meino.cramer
2011-10-10 19:28 ` Canek Peláez Valdés
2011-10-10 21:49 ` Nikos Chantziaras
2011-10-10 17:50 ` [gentoo-user] " Alan McKinnon
2011-10-10 17:56 ` Canek Peláez Valdés [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CADPrc80J_iJtHDx_HOg4nRVLZsmAL0KYdC0X9rL1fQQf50HC3Q@mail.gmail.com \
--to=caneko@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox