Aller au contenu

Scripts Dans /opt/etc/init.d/ Ne D

Featured Replies

Posté(e)

Bonjour à tous,

Depuis un reboot récent de mon NAS, les scripts placés dans /opt/etc/init.d/ ne se lancent plus.

DiskStation> cd init.d/
DiskStation> ll
drwxr-xr-x    2 root     root          4096 Mar 18 15:33 .
drwxr-xr-x    6 root     root          4096 Mar 18 10:54 ..
-rwxr-xr-x    1 root     root          5973 Mar 18 14:56 S98pyload.sh
-rwxr-xr-x    1 root     root          1489 Feb 22 18:36 S99coregrenouille.sh
DiskStation>

J'ai récemment ajouté un 2nd disque dur au NAS pour avoir une protection de données sur un disque (modèle DS212j). Je ne sais pas si ça a une importance pour le souci que j'ai.

Si je lance les scripts à la main, ils se lancent tous les deux:

DiskStation> cd /opt/etc/
DiskStation> ll
drwxr-xr-x    6 root     root          4096 Mar 18 10:54 .
drwxr-xr-x   13 root     root          4096 Mar 18 15:37 ..
drwxr-xr-x    2 root     root          4096 Mar 18 09:22 bash_completion.d
drwxr-xr-x    2 root     root          4096 Mar 18 15:33 init.d
drwxr-xr-x    2 root     root          4096 Feb 22 18:25 ipkg
-rw-r--r--    1 root     root          1040 Feb 15  2012 ipkg.conf
drwxr-xr-x    2 root     root          4096 Mar 18 10:54 mc
-rwxr-xr-x    1 root     root           387 Feb 15  2012 rc.optware
-rw-r--r--    1 root     root          1437 Feb 23  2012 slsh.rc
-rwxr-xr-x    1 root     root          4499 Feb 14  2012 wgetrc
DiskStation> ./rc.optware
pyLoad 0.4.9: try to start
pyLoad 0.4.9: Daemon PID 23078
pyLoad 0.4.9: successfully started
Demarrage - Application coregrenouille
DiskStation> ps | grep grenouille
23098 root      5192 S    /opt/bin/ocamlrun /opt/local/coregrenouille/coregrenouille -f user.config.syno -t
23150 root      2984 S    grep grenouille
DiskStation> ps | grep pyload
23078 root     91456 S    python /opt/share/pyload/pyLoadCore.py --daemon
23159 root      2984 S    grep pyload
DiskStation>

Savez-vous ce qu'il se passe?

Posté(e)

Oui, ce n'est pas le bon endroit pour déposer tes scripts

Tu pourras trouver les différents dossiers ou les déposer pour que çà fonctionne au démarrage en faisant un recherche sur "S99mount.sh"

Posté(e)

Tout ce qui est sous "/opt" fait partie d'optware et n'est pas du natif DSM

Et notamment, les scripts contenus dans "/opt/etc/init.d/" sont éxécuté par le script "/opt/etc/rc.optware"

Il est donc nécessaire que ce dernier soit invoqué au boot (directement ou pas).

Si tu suis bien ce qui est détaillé dans ce post: ça devrait fonctionner.

Rejoindre la conversation

Vous pouvez publier maintenant et vous inscrire plus tard. Si vous avez un compte, connectez-vous maintenant pour publier avec votre compte.

Invité
Répondre à ce sujet…

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.