informatica:linux:runlevel
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
informatica:linux:runlevel [2015/07/21 13:05] – jose | informatica:linux:runlevel [2019/08/05 10:31] – osk-k-k-k | ||
---|---|---|---|
Line 57: | Line 57: | ||
===== 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.txt · Last modified: 2019/12/04 09:21 by osk-k-k-k