1 votes

Comment lancer no-ip au démarrage -Debian

J'ai installé et exécuté no-ip ddns sur Kali 2.0 mais lorsque j'essaie de le faire fonctionner au démarrage, je ne sais pas comment changer le 'X' dans rcX.d ?

Le fichier de configuration dit :

If you want it to run automatically when the machine is booted, then
place the following script in your startup directory. (/etc/init.d/rcX.d
or /sbin/init.d/rcX.d or ???)

        #######################################################
        #! /bin/sh
        # . /etc/rc.d/init.d/functions  # uncomment/modify for your killproc
        case "$1" in
            start)
                echo "Starting noip2."
                /usr/local/bin/noip2
            ;;
            stop)
                echo -n "Shutting down noip2."
                killproc -TERM /usr/local/bin/noip2
            ;;
            *)
                echo "Usage: $0 {start|stop}"
                exit 1
        esac
        exit 0
        #######################################################

Where the 'X' in rcX.d is the value obtained by running the
following command
        grep initdefault /etc/inittab | awk -F: '{print $2}'

Quand j'entre :

grep initdefault /etc/inittab | awk -F : '{print $2}'

J'ai compris :

grep: /etc/inittab: No such file or directory

1voto

Reza Points 339

Vous pouvez obtenir votre niveau d'exécution avec la ligne de commande :

niveau d'exécution

runlevel(7) | Page de manuel Linux

Mais je pense que tu veux :

update-rc.d .....

update-rc.d(8) - sysv-rc | Manpages de Debian Jessie

1voto

Todd Points 111

Pour une raison quelconque, j'ai eu des problèmes avec la réponse acceptée, donc si cela peut aider quelqu'un qui utilise Debian sur Raspberry Pi3, j'ai utilisé ces instructions et elles semblent fonctionner :

https://www.linuxtopia.org/online_books/linux_beginner_books/debian_linux_desktop_survival_guide/No_IP.shtml

SistemesEz.com

SystemesEZ est une communauté de sysadmins où vous pouvez résoudre vos problèmes et vos doutes. Vous pouvez consulter les questions des autres sysadmins, poser vos propres questions ou résoudre celles des autres.

Powered by:

X