[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [HTCondor-users] why does htcondor change sysctl params, and why is this done outside of /etc/sysctl.{d, conf} ?
- Date: Thu, 14 Jan 2016 14:01:47 -0500
- From: Michael V Pelletier <Michael.V.Pelletier@xxxxxxxxxxxx>
- Subject: Re: [HTCondor-users] why does htcondor change sysctl params, and why is this done outside of /etc/sysctl.{d, conf} ?
> From: Rich Pieri <ratinox@xxxxxxx>
> Date: 01/14/2016 01:55 PM
>
> /etc/sysctl.d is a Debianism; it does not exist on RHEL and its
> derivatives, nor are you likely to find it on BSD and BSD-ish systems
--
> but you will find it on Debian kFreeBSD. /etc/sysctl.conf is more
common
> but it is not universal; Macintosh has neither sysctl.conf nor sysctl.d.
An aside...
As of RHEL/CentOS 6.7, at least, the sysctl command
does support /etc/sysctl.d,
it's just that the directory is not created by default.
You can see it handled in /etc/init.d/functions in
the apply_sysctl()
function:
# Apply sysctl settings, including files in /etc/sysctl.d
apply_sysctl() {
sysctl -e -p /etc/sysctl.conf >/dev/null
2>&1
for file in /etc/sysctl.d/* ; do
is_ignored_file "$file"
&& continue
test -f "$file"
&& sysctl -e -p "$file" >/dev/null 2>&1
done
}
In addition the sysctl --system command is documented
to scan /etc/sysctl.d
and a few others.
-Michael Pelletier.
_