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 [2015/07/21 13:04] – jose | informatica:linux:runlevel [2019/12/04 09:21] (current) – osk-k-k-k | ||
|---|---|---|---|
| Line 28: | Line 28: | ||
| exit $? | exit $? | ||
| </ | </ | ||
| + | |||
| + | Damos permisos de ejecución: | ||
| + | # chmod +x / | ||
| Añadimos el servicio: | Añadimos el servicio: | ||
| Line 45: | Line 48: | ||
| | | ||
| Para activar un servicio: | Para activar un servicio: | ||
| - | chkconfig --list | + | chkconfig --list rngd |
| rngd | rngd | ||
| chkconfig rngd on | chkconfig rngd on | ||
| - | chkconfig --list | + | chkconfig --list rngd |
| rngd | rngd | ||
| Line 57: | Line 60: | ||
| ===== 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 | ||
informatica/linux/runlevel.1437483859.txt.gz · Last modified: by jose
