On 12/23/2015 11:12 PM, Ofer Hasson wrote:> [root at web-devel-local-1 ~]# /usr/lib/systemd/systemd-sysctl > [root at web-devel-local-1 ~]# cat /proc/sys/vm/swappiness > 10So... you know that it works when you run it from a root shell, but not during boot. Is the file labeled properly? Anything in audit.log?
I don't see anything related in the audit log (I'm using audit2why). As for labeling: [root at web-devel-local-1 ~]# ll -Z /etc/ | grep sysctl drwxr-xr-x. root root system_u:object_r:etc_t:s0 sysctl.d [root at web-devel-local-1 ~]# ll -Z /etc/sysctl.d/ -rw-r--r--. root root unconfined_u:object_r:system_conf_t:s0 sysctl.conf On Thu, Dec 24, 2015 at 10:51 AM, Gordon Messmer <gordon.messmer at gmail.com> wrote:> On 12/23/2015 11:12 PM, Ofer Hasson wrote: > >> [root at web-devel-local-1 ~]# /usr/lib/systemd/systemd-sysctl >> [root at web-devel-local-1 ~]# cat /proc/sys/vm/swappiness >> 10 >> > > So... you know that it works when you run it from a root shell, but not > during boot. Is the file labeled properly? Anything in audit.log? > > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >
----- Mail original -----> De: "Ofer Hasson" <hassonofer at gmail.com> > ?: "centos" <centos at centos.org> > Envoy?: Jeudi 24 D?cembre 2015 11:36:00 > Objet: Re: [CentOS] systemd-sysctl not running on boot> [root at web-devel-local-1 ~]# ll -Z /etc/ | grep sysctl > drwxr-xr-x. root root system_u:object_r:etc_t:s0 sysctl.d > > [root at web-devel-local-1 ~]# ll -Z /etc/sysctl.d/ > -rw-r--r--. root root unconfined_u:object_r:system_conf_t:s0 sysctl.conf >Is there a relationship with the new symlink created by the upgrade in my servers ? # ls -l /etc/sysctl.d/ total 0 lrwxrwxrwx. 1 root root 14 23 d?c. 18:11 99-sysctl.conf -> ../sysctl.conf # yum provides /etc/sysctl.d/99-sysctl.conf initscripts-9.49.30-1.el7.x86_64 : The inittab file and the /etc/init.d scripts D?p?t : base Correspondance depuis : Nom de fichier : /etc/sysctl.d/99-sysctl.conf Sylvain. Pensez ENVIRONNEMENT : n'imprimer que si ncessaire