All of lore.kernel.org
 help / color / mirror / Atom feed
From: ChenQi <Qi.Chen@windriver.com>
To: Koen Kooi <koen@dominion.thruhere.net>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH 1/1] systemd: make /etc/sysctl.conf have real effect
Date: Thu, 6 Nov 2014 15:59:27 +0800	[thread overview]
Message-ID: <545B2A5F.5040208@windriver.com> (raw)
In-Reply-To: <51B83ADF-EF5F-40FF-B4F5-BFDEF0305051@dominion.thruhere.net>

On 11/06/2014 03:48 PM, Koen Kooi wrote:
> Op 6 nov. 2014, om 08:32 heeft Chen Qi <Qi.Chen@windriver.com> het volgende geschreven:
>
>> In systemd, /etc/sysctl.conf is actually ignored by systemd-sysctl,
>> because this command only examine *.conf files under a bunch of directories
>> like /etc/sysctl.d or /usr/lib/sysctl.d.
>>
>> The problem is we are used to configuring kernel parameters in /etc/sysctl.conf,
>> so it would be really strange if the configuration in that file doesn't have any
>> effect.
>>
>> This patch reference Fedora's solution to this problem, creating a symlink to
>> /etc/sysctl.conf under /etc/sysctl.d/.
> Shouldn't this be done in procps instead?
>

Actually, the problem is not about `sysctl' command.
procps provides `sysctl', but busybox also provides this command.
It's very possible that on our generated image, procps is not installed 
but `sysctl' command is available.
Both busybox's and procps's `sysctl' command takes /etc/sysctl.conf into 
consideration.

Now, systemd provides a similar utility called `systemd-sysctl' which is 
executed at boot time via systemd-sysctl.service.

So our actually problem is that systemd-sysctl ignores /etc/sysctl.conf, 
which makes it somewhat strange, especially to users who are used to 
configuring parameters in sysctl.conf.
And this patch solves this problem by adding a symlink under /etc/sysctl.d/.

That's why I think we should put this in systemd.

Best Regards,
Chen Qi


  reply	other threads:[~2014-11-06  7:57 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-06  7:32 [PATCH 0/1] systemd: make /etc/sysctl.conf have real effect Chen Qi
2014-11-06  7:32 ` [PATCH 1/1] " Chen Qi
2014-11-06  7:48   ` Koen Kooi
2014-11-06  7:59     ` ChenQi [this message]
2014-11-06 10:33       ` Koen Kooi
2014-11-06 11:59         ` ChenQi
2014-11-06 13:29           ` Koen Kooi
2014-11-06 22:38             ` Randy Witt
2014-11-07  3:34               ` ChenQi
2014-11-07 14:29                 ` Martin Jansa
2014-11-09  7:06                   ` ChenQi

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=545B2A5F.5040208@windriver.com \
    --to=qi.chen@windriver.com \
    --cc=koen@dominion.thruhere.net \
    --cc=openembedded-core@lists.openembedded.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.