User Tools

Site Tools


informatica:linux:runlevel

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
informatica:linux:runlevel [2015/07/21 13:04] joseinformatica:linux:runlevel [2019/08/05 10:31] osk-k-k-k
Line 45: Line 45:
      
 Para activar un servicio: Para activar un servicio:
-  chkconfig --list | grep rngd+  chkconfig --list rngd
   rngd            0:off 1:off 2:off 3:off 4:off 5:off 6:off   rngd            0:off 1:off 2:off 3:off 4:off 5:off 6:off
  
   chkconfig rngd on   chkconfig rngd on
  
-  chkconfig --list | grep rngd+  chkconfig --list rngd
   rngd            0:off 1:off 2:on 3:on 4:on 5:on 6:off   rngd            0:off 1:off 2:on 3:on 4:on 5:on 6:off
  
Line 57: Line 57:
  
 ===== Debian ===== ===== Debian =====
 +
 +<code>
 +#! /bin/bash
 +
 +# Required-Start:    $syslog
 +# Required-Stop:     $syslog
 +# Default-Start:     2 3 4 5
 +# Default-Stop:      0 1 6
 +
 +case "$1" in
 +start)
 +
 +        runuser usuario -c "script_start.sh"
 +
 +        ;;
 +
 +stop)
 +        runuser usuario -c "script_stop.sh"
 +
 +        ;;
 +*)
 +        echo $"Usage: $0 {start|stop}"
 +        exit 1
 +esac
 +exit $?
 +</code>
 +
 Copiar el ejecutable en /etc/init.d Copiar el ejecutable en /etc/init.d
  
informatica/linux/runlevel.txt · Last modified: 2019/12/04 09:21 by osk-k-k-k