Le script rc.local ne s'éxecute pas au démarrage
Bonjour,
Je souhaite utiliser le script /etc/rc.local pour lancer une commande après le boot.
Voici mon rc.local de test :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| #!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
date >> /home/moi/logtest
exit 0 |
Le script s’exécute normalement en passant par la console et je peux vérifier la présence de la date.
Voici ses droits :
Code:
-rwxr-xr-x 1 root root 333 oct. 10 19:59 rc.local*
Je trouve les liens s99rc.local dans les dossiers rcx.d (x allant de 2 à 5)
mais au final ça ne marche pas au démarrage.
Où ai-je pêché ?