<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hello Wilhelm</div><div><br></div><div>First of all I want to thank you for the fast reply on my question!</div><div>Please see below where I've tried to answer your questions. </div><div><br></div><div>I've changed the runlevel links from S01scanbd to S04scanbd, where dbus has S02dbus.</div><div>It looks like the dbus daemon is writing the system_bus_socket file nevertheless after scanbd gets started.</div><div><br></div><div><br></div><div>########################</div><div><div>pi@raspberrypi:/var/run/dbus$ stat system_bus_socket </div><div>  Datei: „system_bus_socket“</div><div>  Größe: 0         <span class="Apple-tab-span" style="white-space:pre">    </span>Blöcke: 0          EA Block: 4096   Socket</div><div>Gerät: ch/12d<span class="Apple-tab-span" style="white-space:pre">        </span>Inode: 2396        Verknüpfungen: 1</div><div>Zugriff: (0777/srwxrwxrwx)  Uid: (    0/    root)   Gid: (    0/    root)</div><div>Zugriff    : 2013-03-19 16:12:41.034860256 +0100</div><div>Modifiziert: 2013-03-19 16:11:23.280001416 +0100</div><div>Geändert   : 2013-03-19 16:11:23.280001416 +0100</div><div> Geburt    : -</div><div>pi@raspberrypi:/var/run/dbus$ </div></div><div>########################</div><div><br></div><div><br></div><div>The situation is the same as before :-(</div><div><br></div><div>########  SYSLOG ########</div><div><div>Mar 19 16:11:22 raspberrypi scanbd: /usr/local/bin/scanbd: Scanning for local-only devices</div><div>Mar 19 16:11:22 raspberrypi scanbd: /usr/local/bin/scanbd: Can't get the scbtn device list</div><div>Mar 19 16:11:22 raspberrypi scanbd: /usr/local/bin/scanbd: device list null</div><div>Mar 19 16:11:22 raspberrypi scanbd: /usr/local/bin/scanbd: start_scbtn_threads</div><div>Mar 19 16:11:22 raspberrypi scanbd: /usr/local/bin/scanbd: start the threads (0)</div><div>Mar 19 16:11:22 raspberrypi scanbd: /usr/local/bin/scanbd: start dbus thread</div><div>Mar 19 16:11:22 raspberrypi scanbd: /usr/local/bin/scanbd: dbus_init</div><div>Mar 19 16:11:22 raspberrypi scanbd: /usr/local/bin/scanbd: DBus connection error: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory</div></div><div>#########################</div><div><br></div><div><br></div><div><br></div><div><div>Am 18.03.2013 um 16:09 schrieb Wilhelm:</div><blockquote type="cite"><div><font class="Apple-style-span" color="#000000"><br></font>please show the file-mode bits<br></div></blockquote><div><br></div><div>-rwxr-xr-x 1 root staff 136630 Mär  8 10:49 /usr/local/bin/scanbd</div><div>-rwxr-xr-x 1 root staff 7740 Mär 14 14:25 /usr/local/etc/scanbd/scanbd.conf</div><div><br></div><div><br></div><div>scanbd is running as root</div><div>(root      1726     1  0 15:25 ?        00:00:00 /usr/local/bin/scanbd -c /usr/local/etc/scanbd/scanbd.conf)</div><div><br></div><div><br></div><blockquote type="cite"><div><blockquote type="cite"><br></blockquote><blockquote type="cite">Also it seams that the environment variable $SANE_CONFIG_DIR ist not set at<br></blockquote><blockquote type="cite">boot because an echo-command prints an empty row.<br></blockquote><br>can you track this down to where it happens?<br></div></blockquote><div><br></div><div>I am sorry, no. I've set the variable now in /etc/environment file</div><div>Now I can start scanbd in foreground with scanbd -f only</div><div><br></div><div>This is the first part of my scanbd.conf</div><div><br></div><div>######</div><div><div># global settings</div><div>global {</div><div>        # turn on debugging</div><div>        </div><div>        # log to console</div><div>        debug   = true </div><div><br></div><div>        # debug logging</div><div>        # 1=error, 2=warn, 3=info, 4-7=debug</div><div>        debug-level = 7</div><div>        </div><div>        # drop priviliges to this user</div><div>        #=============================</div><div>        # Linux: </div><div>        # user    = saned # root</div><div>        # *BSD</div><div>        # user    = root</div><div>        user    = root</div><div><br></div><div>        # Group to be used</div><div>        #=================</div><div>        # Linux (most distributions use the lp group to access scanners)</div><div>        # group   = lp</div><div>        # ArchLinux (ArchLinux uses the scanner group)</div><div>        # group = scanner</div><div>        #</div><div>        # *BSD (no group lp here, use daemon instead)</div><div>        # group   = daemon # root</div><div>        #</div><div>        group   = root</div><div><br></div><div>        # the saned executable for manager-mode</div><div>        saned   = "/usr/sbin/saned"</div><div>        saned_opt  = {} # string-list</div><div>        saned_env  = { "SANE_CONFIG_DIR=/usr/local/etc/scanbd" } # list of environment vars for saned</div><div>############</div></div><div><br></div><blockquote type="cite"><div><br><blockquote type="cite"><br></blockquote><blockquote type="cite">If I set the variable manually by using export export<br></blockquote><blockquote type="cite">SANE_CONFIG_DIR=/usr/local/etc/scanbd I can run in background with scanbd -c<br></blockquote><blockquote type="cite">/usr/local/etc/scanbd/scanbd.conf and everything runs as expected.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Do I have something to change in boot process or with read permissions?<br></blockquote><br>to place the init-script and add the run-level links should be enough ...<br></div></blockquote><div><div><br></div><div>This are the runlevel links</div><div><br></div><div>pi@raspberrypi:/etc$ sudo find . -name "*scanbd*" -exec ls -la {} \;</div><div>-rw-r--r-- 1 root root 586 Mär 14 14:32 ./dbus-1/system.d/scanbd_dbus.conf</div><div>lrwxrwxrwx 1 root root 16 Mär 12 17:07 ./rc1.d/K01scanbd -> ../init.d/scanbd</div><div>lrwxrwxrwx 1 root root 16 Mär 19 15:19 ./rc2.d/S04scanbd -> ../init.d/scanbd</div><div>lrwxrwxrwx 1 root root 16 Mär 12 17:07 ./rc0.d/K01scanbd -> ../init.d/scanbd</div><div>lrwxrwxrwx 1 root root 16 Mär 12 17:07 ./rc4.d/S04scanbd -> ../init.d/scanbd</div><div>lrwxrwxrwx 1 root root 16 Mär 12 17:07 ./rc5.d/S04scanbd -> ../init.d/scanbd</div><div>lrwxrwxrwx 1 root root 16 Mär 12 17:07 ./rc3.d/S04scanbd -> ../init.d/scanbd</div><div>-rwxr-xr-x 1 root root 3908 Mär 15 17:20 ./init.d/scanbd</div><div>lrwxrwxrwx 1 root root 16 Mär 12 17:07 ./rc6.d/K01scanbd -> ../init.d/scanbd</div><div>pi@raspberrypi:/etc$ </div><div><br></div><div><br></div><div>Thank you in advance for your help.</div><div><br></div><div>Olaf</div><div><br></div><div><br></div></div><div><br></div></div></body></html>