
Ich habe No-IP-DDNs auf Kali 2.0 installiert und ausgeführt, aber beim Versuch, es beim Start zum Laufen zu bringen, weiß ich nicht, in was ich das „X“ in rcX.d ändern soll.
In der Konfigurationsdatei steht:
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}'
Wenn ich eingebe:
grep initdefault /etc/inittab | awk -F: '{print $2}'
Ich bekomme:
grep: /etc/inittab: No such file or directory
Antwort1
Sie können Ihren Runlevel mit der Befehlszeile abrufen:
Runlevel
Aber ich glaube, Sie wollen:
update-rc.d .....
Antwort2
Aus irgendeinem Grund hatte ich Probleme mit der akzeptierten Antwort. Falls dies also jemandem hilft, der Debian auf Raspberry Pi3 ausführt, habe ich diese Anweisungen verwendet und sie scheinen zu funktionieren: