An issue with connmand in init

Hello, I have a problem with connmand not properly starting during OS init. - The connmand script quietly dies during init. I cannot find anything in system logs. - The same script works perfectly fine, when it's started from interactive shell - I tried various approaches to the script, with start-stop-daemon or without it; trying a loop waiting for IP to be added. Nothing worked. - You can check the current version (minimalistic) below. - I think it used to work, but I cannot remember what changed and make it bad. I appreciate any suggestion. Where should I look? What can I change to enforce logs or any form of feedback. Regards, Wawrzek PS. Current state of the script. ``` #!/bin/sh # # /etc/rc.d/connamnd: start/stop connman daemon # NAME="/usr/sbin/connmand" case $1 in start) $NAME ;; stop) /usr/bin/killall -e $NAME ;; restart) $0 stop sleep 2 $0 start ;; *) echo "usage: $0 [start|stop|restart]" ;; esac -- Dr Wawrzyniec Niewodniczański or Wawrzek for short PhD in Quantum Chemistry & MSc in Molecular Engineering WWW: http://wawrzek.name E-MAIL: jobs@wawrzek.name Linux User #177124
participants (1)
-
Wawrzek Niewodniczanski