[sane-devel] Scanbm and xinetd.d

Wilhelm wilhelm.meier at fh-kl.de
Fri Mar 20 05:32:33 UTC 2015


Please send the log file when scanbm is started via xinetd.

Am 18.03.2015 um 23:24 schrieb ylafont:
> I have been trying to duplicate my scandb setup without success.  No sure
> why, scanbm in not starting starting via xinetd which is the exact same file
> from the previous setup and everything is identical.  is this a rights
> issue?  the user is root, so  i am not sure if that is it.
> 
> if i start  scanbd:
> /usr/local/sbin/scanbd -d7 -f -c /usr/local/etc/scanbd/scanbd.conf
> everything works.
> 
> if start scanbm
> /usr/local/sbin/scanbm -d7 -f -c /usr/local/etc/scanbd/scanbd.conf
> 
> i get the error below.
> 
> Mar 18 18:27:21 raspberry-pi scanbm: /usr/local/sbin/scanbm: foreground
> Mar 18 18:27:21 raspberry-pi scanbm: /usr/local/sbin/scanbm: config-file:
> /usr/local/etc/scanbd/scanbd.conf
> Mar 18 18:27:21 raspberry-pi scanbm: /usr/local/sbin/scanbm: reading config
> file /usr/local/etc/scanbd/scanbd.conf
> Mar 18 18:27:21 raspberry-pi scanbm: /usr/local/sbin/scanbm: We are called
> as scanbm - setting manager-mode
> Mar 18 18:27:21 raspberry-pi scanbm: /usr/local/sbin/scanbm: debug on:
> level: 7
> Mar 18 18:27:21 raspberry-pi scanbm: /usr/local/sbin/scanbm: Entering
> manager mode
> Mar 18 18:27:21 raspberry-pi scanbm: /usr/local/sbin/scanbm: dbus signal
> saned-start
> Mar 18 18:27:21 raspberry-pi scanbm: /usr/local/sbin/scanbm: dbus_init
> Mar 18 18:27:21 raspberry-pi scanbm: /usr/local/sbin/scanbm: dbus match
> type='signal',interface='org.freedesktop.Hal.Manager'
> Mar 18 18:27:21 raspberry-pi scanbm: /usr/local/sbin/scanbm: now sending
> signal saned_begin
> Mar 18 18:27:21 raspberry-pi scanbm: /usr/local/sbin/scanbm: manager mode:
> dbus
> Mar 18 18:27:21 raspberry-pi scanbm: /usr/local/sbin/scanbm: calling dbus
> method: aquire
> Mar 18 18:27:21 raspberry-pi scanbm: /usr/local/sbin/scanbm:
> dbus_call_method
> Mar 18 18:27:21 raspberry-pi scanbm: /usr/local/sbin/scanbm: waiting for
> reply
> Mar 18 18:27:21 raspberry-pi scanbm: /usr/local/sbin/scanbm: forking
> subprocess for saned
> Mar 18 18:27:21 raspberry-pi scanbm: /usr/local/sbin/scanbm: waiting for
> saned
> Mar 18 18:27:21 raspberry-pi scanbm: /usr/local/sbin/scanbm: Setting
> environment: SANE_CONFIG_DIR=/usr/local/etc/scanbd/sane.d
> *Mar 18 18:27:21 raspberry-pi saned[1982]: saned (AF-indep+IPv6) from
> sane-backends 1.0.22 starting up
> Mar 18 18:27:21 raspberry-pi saned[1982]: check_host: getpeername failed:
> Socket operation on non-socket
> Mar 18 18:27:21 raspberry-pi saned[1982]: init: access by host [error]
> denied
> Mar 18 18:27:21 raspberry-pi saned[1982]: saned exiting*
> Mar 18 18:27:21 raspberry-pi scanbm: /usr/local/sbin/scanbm: saned exited
> with status: 0
> Mar 18 18:27:21 raspberry-pi scanbm: /usr/local/sbin/scanbm: calling dbus
> method: release
> Mar 18 18:27:21 raspberry-pi scanbm: /usr/local/sbin/scanbm:
> dbus_call_method
> Mar 18 18:27:21 raspberry-pi scanbm: /usr/local/sbin/scanbm: waiting for
> reply
> Mar 18 18:27:21 raspberry-pi scanbm: /usr/local/sbin/scanbm: dbus signal
> saned-end
> Mar 18 18:27:21 raspberry-pi scanbm: /usr/local/sbin/scanbm: now sending
> signal saned_end
> 
> 
> and on reboot, scanbm does not start.
> 
> /etc/xinetd.d/saned
> 
> service saned 
> {
> 	port = 6566
> 	socket_type = stream
> 	server = /usr/local/sbin/scanbm
> 	server_args = scanbm –c /usr/local/etc/scanbd/scanbd.conf 
> 	protocol = tcp
> 	user = saned
> 	#user = root
> 	group = scanner
> 	wait = no
> 	disable = no
> }
> 
> 
> thanks.
> 
> 
> 
> --
> View this message in context: http://sane.10972.n7.nabble.com/Scanbm-and-xinetd-d-tp19579.html
> Sent from the SANE - Dev mailing list archive at Nabble.com.
> 


-- 
Wilhelm
w.meier at unix.net



More information about the sane-devel mailing list