informatica:linux:runlevel
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| informatica:linux:runlevel [2013/07/10 11:38] – jose | informatica:linux:runlevel [2019/12/04 09:21] (current) – osk-k-k-k | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | Runlevel | + | ====== Runlevels ====== |
| - | ====== Red Hat: ====== | + | ===== Red Hat ===== |
| Line 28: | Line 28: | ||
| exit $? | exit $? | ||
| </ | </ | ||
| + | |||
| + | Damos permisos de ejecución: | ||
| + | # chmod +x / | ||
| Añadimos el servicio: | Añadimos el servicio: | ||
| Line 43: | Line 46: | ||
| sendmail | sendmail | ||
| + | | ||
| + | Para activar un servicio: | ||
| + | chkconfig --list rngd | ||
| + | rngd | ||
| + | |||
| + | chkconfig rngd on | ||
| + | |||
| + | chkconfig --list rngd | ||
| + | rngd | ||
| + | |||
| + | | ||
| ===== Debian ===== | ===== Debian ===== | ||
| + | < | ||
| + | #! /bin/bash | ||
| + | |||
| + | # Required-Start: | ||
| + | # Required-Stop: | ||
| + | # Default-Start: | ||
| + | # Default-Stop: | ||
| + | |||
| + | case " | ||
| + | start) | ||
| + | |||
| + | runuser usuario -c " | ||
| + | |||
| + | ;; | ||
| + | |||
| + | stop) | ||
| + | runuser usuario -c " | ||
| + | |||
| + | ;; | ||
| + | *) | ||
| + | echo $" | ||
| + | exit 1 | ||
| + | esac | ||
| + | exit $? | ||
| + | </ | ||
| Copiar el ejecutable en /etc/init.d | Copiar el ejecutable en /etc/init.d | ||
| Line 54: | Line 93: | ||
| Deshabilitar en niveles: \\ | Deshabilitar en niveles: \\ | ||
| # | # | ||
| + | |||
| + | Herramientas gráficas pero de líneas de comando: | ||
| + | rcconf sysv-rc-conf | ||
| + | |||
informatica/linux/runlevel.1373456332.txt.gz · Last modified: (external edit)
