[Buildroot] [PATCH v3 1/2] package/procps-ng: add init script for sysctl
Peter Korsgaard
peter at korsgaard.com
Sat Aug 3 16:47:57 UTC 2019
>>>>> "unixmania" == unixmania <unixmania at gmail.com> writes:
> From: Carlos Santos <unixmania at gmail.com>
> Add a simple init script that invokes sysctl early in the initialization
> process to configure kernel parameters. This is already performed by
> systemd (systemd-sysctl) but there is no sysvinit/busybox counterpart.
> Files are read from directories in the following list in the given order
> from top to bottom:
> /run/sysctl.d/*.conf
> /etc/sysctl.d/*.conf
> /usr/local/lib/sysctl.d/*.conf
> /usr/lib/sysctl.d/*.conf
> /lib/sysctl.d/*.conf
> /etc/sysctl.conf
> Signed-off-by: Carlos Santos <unixmania at gmail.com>
> ---
> Changes v2->v3:
> - Update SOB, since I don't work for DATACOM anymore.
> Changes v1->v2:
> - The "--system" option activates "--ignore", which is bad because
> invalid variable settings in the configuration files will not be
> reported on the system log. Use some scripting to mimic the --system
> behavior but still reporting errors.
> - Redirect sysctl's standard output to syslog with facility.level
> "kern.info" and standard error to syslog with facility.level
> "kern.err".
> - Do not pass "--quiet" to sysctl, since we wanto to see the results.
> - Use "Running" and "Rerunning" instead of "Starting", since we do not
> really start anything, just run a program.
> - Do nothing on "stop", since ther is no running daemon to stop.
Committed, thanks.
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list