Added some info from the my system:
[root at web-devel-local-1 ~]# uname -a
Linux web-devel-local-1.in.parkam-ip.com 3.10.0-327.3.1.el7.x86_64 #1 SMP
Wed Dec 9 14:09:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
[root at web-devel-local-1 ~]# cat /etc/sysctl.d/sysctl.conf
# System default settings live in /usr/lib/sysctl.d/00-system.conf.
# To override those settings, enter new settings here, or in an
/etc/sysctl.d/<name>.conf file
#
# For more information, see sysctl.conf(5) and sysctl.d(5).
net.ipv4.ip_forward = 0
kernel.panic = 20
kernel.sem = 250 65000 32 256
vm.swappiness = 10
net.ipv4.conf.all.log_martians = 1
kernel.dmesg_restrict = 1
vm.dirty_ratio = 15
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv4.tcp_syncookies = 1
net.ipv6.conf.all.disable_ipv6 = 1
kernel.kptr_restrict = 1
[root at web-devel-local-1 ~]# systemctl status systemd-sysctl
? systemd-sysctl.service - Apply Kernel Variables
Loaded: loaded (/usr/lib/systemd/system/systemd-sysctl.service; static;
vendor preset: disabled)
Active: active (exited) since Thu 2015-12-24 09:05:15 IST; 3min 8s ago
Docs: man:systemd-sysctl.service(8)
man:sysctl.d(5)
Process: 488 ExecStart=/usr/lib/systemd/systemd-sysctl (code=exited,
status=0/SUCCESS)
Main PID: 488 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/systemd-sysctl.service
Dec 24 09:05:14 web-devel-local-1.in.parkam-ip.com systemd[1]: Starting
Apply Kernel Variables...
Dec 24 09:05:15 web-devel-local-1.in.parkam-ip.com systemd[1]: Started
Apply Kernel Variables.
[root at web-devel-local-1 ~]# reboot
[root at web-devel-local-1 ~]# cat /proc/sys/vm/swappiness
30
[root at web-devel-local-1 ~]# /usr/lib/systemd/systemd-sysctl
[root at web-devel-local-1 ~]# cat /proc/sys/vm/swappiness
10
[root at web-devel-local-1 ~]# cat
/usr/lib/systemd/system/systemd-sysctl.service
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
[Unit]
Description=Apply Kernel Variables
Documentation=man:systemd-sysctl.service(8) man:sysctl.d(5)
DefaultDependencies=no
Conflicts=shutdown.target
After=systemd-readahead-collect.service systemd-readahead-replay.service
After=systemd-modules-load.service
Before=sysinit.target shutdown.target
ConditionPathIsReadWrite=/proc/sys/
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/lib/systemd/systemd-sysctl
On Thu, Dec 24, 2015 at 9:01 AM, Ofer Hasson <hassonofer at gmail.com>
wrote:
> also in /etc/sysctl.d/
>
> On Thu, Dec 24, 2015 at 8:58 AM, Gordon Messmer <gordon.messmer at
gmail.com>
> wrote:
>
>> On 12/23/2015 05:08 AM, Ofer Hasson wrote:
>>
>>> By running "systemctl status systemd-sysctl" I also
receive the same
>>> output, but a simple "cat /proc/sys/vm/swappiness"
returns the default
>>> value, and not the one set by my conf file.
>>>
>>
>> All of mine, as set by files in /etc/sysctl.d/, are correct after boot.
>> Where is your conf file?
>>
>> _______________________________________________
>> CentOS mailing list
>> CentOS at centos.org
>> https://lists.centos.org/mailman/listinfo/centos
>>
>
>