Bonjour,
J'ai installer le no-ip sur ma FC4, et il fonctionne trés bien, je le lance manuellement en faisant:
noip2
Maintenant, j'aimerais automatiser son lancement au démarrage du système mais j'ai du mal à interpréter ce qui est préconisé dans le README.FIRST:
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}'
D'abord, rcX.d --> X= 0, 1, 2, 3, 4, 5 ou 6?
Ensuite, dans quel fichier dois-je rajouter le script??
Ou dois-je créer un nouveau fichier .sh? Sous quel nom?
Je vous remercie d'avance pour vos réponses.
Bonne journée!