miércoles, 23 de noviembre de 2011

LINUX: tips niveles de arranque (solo para Red-Hat).

Los SO red hat cuentan con metodos de administración más simples para la configuración de los niveles de arranque de los distintos servicios.

Listar los servicios configurados:
[root@localhost ~]# chkconfig --list
NetworkManager 0:off 1:off 2:off 3:off 4:off 5:off 6:off
acpid 0:off 1:off 2:on 3:on 4:on 5:on 6:off
anacron 0:off 1:off 2:on 3:on 4:on 5:on 6:off
apmd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
atd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
auditd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
autofs 0:off 1:off 2:off 3:on 4:on 5:on 6:off



Filtar por un servicio
[root@localhost ~]# chkconfig --list | grep cups
cups 0:off 1:off 2:on 3:on 4:on 5:on 6:off
[root@localhost ~]#

Deshabilitar el servicio cups en el runlevel 5:
[root@localhost ~]# chkconfig --level 5 cups off;

Comprobar:
[root@localhost ~]# chkconfig --list | grep cups
cups 0:off 1:off 2:on 3:on 4:on 5:off 6:off
[root@localhost ~]#

Descativar el servicio cups en todos los niveles
[root@localhost ~]# chkconfig cups off;

Comprobar
[root@localhost ~]# chkconfig --list | grep cups
cups 0:off 1:off 2:off 3:off 4:off 5:off 6:off
[root@localhost ~]#

Habilitar el servicio cups en el runlevel 3:
[root@localhost ~]# chkconfig --level 3 cups on
[root@localhost ~]# chkconfig --list | grep cups
cups 0:off 1:off 2:off 3:on 4:off 5:off 6:off
[root@localhost ~]#

Habilitar el servicio cups en los runlevel 3 y 5:
[root@localhost ~]# chkconfig --level 35 cups on;
[root@localhost ~]# chkconfig --list | grep cups
cups 0:off 1:off 2:off 3:on 4:off 5:on 6:off
[root@localhost ~]#

No hay comentarios:

Publicar un comentario