El 21/08/16 a las 14:44, Hugo Florentino escribió: > Hola colegas, > > Recientemente he notado que con el reinicio del sistema no cargan mis > preferencias de sysctl, mas concretamente, ni el archivo > /etc/sysctl.conf ni tampoco ninguno de los archivos dentro de > /etc/sysctl.d/ > > Acabo de hacer una búsqueda: > > # find /etc/ -type f -print0 | xargs -0 grep '/etc/sysctl.' > > Aparentemente el único archivo que contiene una referencia relevante es > /etc/init.d/procps, pero no veo línea alguna que cargue la > configuración. En mi caso, esto es lo único que contiene: > > #====== (inicio del archivo) ======# > #! /bin/sh > # /etc/init.d/procps: Set kernel variables from /etc/sysctl.conf > # > # written by Elrond <elr...@wunder-nett.org> > > ### BEGIN INIT INFO > # Provides: procps > # Required-Start: mountkernfs $local_fs > # Required-Stop: > # Should-Start: udev module-init-tools > # X-Start-Before: $network > # Default-Start: S > # Default-Stop: > # Short-Description: Configure kernel parameters at boottime > # Description: Loads kernel parameters that are specified in > /etc/sysctl.conf > ### END INIT INFO > > PATH=/sbin:/bin > > SYSCTL=/sbin/sysctl > > test -x $SYSCTL || exit 0 > > . /lib/lsb/init-functions > #====== (fin del archivo) ======# > > Tras unas búsquedas, veo que ese archivo debería contener algo como > esto, al menos en versiones de Linux que venían sin systemd: > > for file in /etc/sysctl.conf /etc/sysctl.d/*.conf > do > sysctl $quiet -p "$file" > done > > Sin embargo, en este caso, el archivo no contiene nada parecido. > Esto es en Debian 8, actualizado al día, he aqui el resultado de $(uname > -a): > > Linux miservidor 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2+deb8u3 > (2016-07-02) x86_64 GNU/Linux > > A alguien más le ocurre? > Por favor, si su sistema usa systemd y el archivo /etc/init.d/procps es > diferente al mío, compartan el contenido. > > Saludos, Hugo > > ______________________________________________________________________ > Lista de correos del Grupo de Usuarios de Tecnologías Libres de Cuba. > Gutl-l@jovenclub.cu > https://listas.jovenclub.cu/cgi-bin/mailman/listinfo/gutl-l Uso KaOS que emplea systemd desde su mismisimo surgimiento, y baja /etc/init.d no existe nada, solo un archivo readme con la siguiente explicación.
You are looking for the traditional init scripts in /etc/init.d, and they are gone? Here's an explanation on what's going on: You are running a systemd-based OS where traditional init scripts have been replaced by native systemd services files. Service files provide very similar functionality to init scripts. To make use of service files simply invoke "systemctl", which will output a list of all currently running services (and other units). Use "systemctl list-unit-files" to get a listing of all known unit files, including stopped, disabled and masked ones. Use "systemctl start foobar.service" and "systemctl stop foobar.service" to start or stop a service, respectively. For further details, please refer to systemctl(1). Note that traditional init scripts continue to function on a systemd system. An init script /etc/init.d/foobar is implicitly mapped into a service unit foobar.service during system initialization. Thank you! Further reading: man:systemctl(1) man:systemd(1) http://0pointer.de/blog/projects/systemd-for-admins-3.html http://www.freedesktop.org/wiki/Software/systemd/Incompatibilities Ahora mirando uno de mis servidores debian 8 actualizado al día igualmente, si contiene dicho archivo, pero el contenido es muy diferente al tuyo, veo que el tuyo esta truncado y es el siguiente. #! /bin/sh # /etc/init.d/procps: Set kernel variables from /etc/sysctl.conf # # written by Elrond <elr...@wunder-nett.org> ### BEGIN INIT INFO # Provides: procps # Required-Start: mountkernfs $local_fs # Required-Stop: # Should-Start: udev module-init-tools # X-Start-Before: $network # Default-Start: S # Default-Stop: # Short-Description: Configure kernel parameters at boottime # Description: Loads kernel parameters that are specified in /etc/sysctl.conf ### END INIT INFO PATH=/sbin:/bin SYSCTL=/sbin/sysctl test -x $SYSCTL || exit 0 . /lib/lsb/init-functions # Comment this out for sysctl to print every item changed QUIET_SYSCTL="-q" # Check for existance of the default file and exit if not there, # Closes #52839 for the boot-floppy people if [ -f /etc/default/rcS ] ; then . /etc/default/rcS fi set -e case "$1" in start|restart|force-reload|reload) log_action_begin_msg "Setting kernel variables " STATUS=0 $SYSCTL $QUIET_SYSCTL --system || STATUS=$? log_action_end_msg $STATUS ;; stop) ;; status) ;; *) echo "Usage: /etc/init.d/procps {start|stop|restart|reload|force-reload|status}" >&2 exit 3 ;; esac exit 0 -- Arian Molina Aguilera Administrador de Redes y Servicios Telemáticos Linux Usuario Registrado #392892 Telfs: +53(7)696-7510 ext 236 jabber: linuxc...@openmailbox.org Brascuba Cigarrillos S.A. La Habana. Cuba. “Nunca consideres el estudio como una obligación, sino como una oportunidad para penetrar en el bello y maravilloso mundo del saber. Albert Einstein” ______________________________________________________________________ Lista de correos del Grupo de Usuarios de Tecnologías Libres de Cuba. Gutl-l@jovenclub.cu https://listas.jovenclub.cu/cgi-bin/mailman/listinfo/gutl-l