Comme indiqué dans le titre, j'ai un problème avec un script qui doit
démarrer avec la machine. En fait j'ai 2 soucis, quand je laisse la
ligne . /lib/lsb/init-functions, mon démon (eibd) ne démarre pas quand
je lance le script. Si je désactive la ligne, au démarrage le démon ne
démarre pas non plus. Le script se trouve dans /etc/init.d avec les
droits d'éxecutions, j'ai fait un rc-update, le lien apparait bien
dans /etc.rc2.d comme eibdS06.
Debian jessie à jour.
eibd:
! /bin/sh
### BEGIN INIT INFO
# Provides: eibd
# Required-Start: $portmap
# Required-Stop: $all
# Default-Start: S
# Default-Stop: 0 1 6
# Short-Description: Start eibd service at the end of boot
# Description: This services is for communications with knx/eib.
### END INIT INFO
slt bernard --MP_/WuKaQnN/UE1UW9FwSfayfTF Content-Type: text/plain Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=script-eibd.txt
#! /bin/sh ### BEGIN INIT INFO # Provides: eibd # Required-Start: $portmap # Required-Stop: $all # Default-Start: S # Default-Stop: 0 1 6 # Short-Description: Start eibd service at the end of boot # Description: This services is for communications with knx/eib. ### END INIT INFO
attention au shebang :
https://fr.wikipedia.org/wiki/Shebang
attention à l'interface eth0 ou wifi
set chmod +x ?
slt
bernard
--MP_/WuKaQnN/UE1UW9FwSfayfTF
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=script-eibd.txt
#! /bin/sh
### BEGIN INIT INFO
# Provides: eibd
# Required-Start: $portmap
# Required-Stop: $all
# Default-Start: S
# Default-Stop: 0 1 6
# Short-Description: Start eibd service at the end of boot
# Description: This services is for communications with knx/eib.
### END INIT INFO
slt bernard --MP_/WuKaQnN/UE1UW9FwSfayfTF Content-Type: text/plain Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=script-eibd.txt
#! /bin/sh ### BEGIN INIT INFO # Provides: eibd # Required-Start: $portmap # Required-Stop: $all # Default-Start: S # Default-Stop: 0 1 6 # Short-Description: Start eibd service at the end of boot # Description: This services is for communications with knx/eib. ### END INIT INFO