ylafont
Posts: 16
Joined: Wed Sep 26, 2012 1:13 am

xinetd and sane

Wed Mar 25, 2015 4:49 pm

Need some guidance, if at all possible.

I have installed SANE and i and not sure if it is being started by xinetd.

I have the following /etc/xinetd.d/saned
service saned

Code: Select all

{
socket_type = stream
server = /usr/sbin/saned
protocol = tcp
#user = saned
user = pi
group = scanner
wait = no
disable = no
}
/etc/defaults/saned

Code: Select all

run=yes
When the Pi boots, i get the following in syslog

Code: Select all

Mar 25 12:30:19 PiScanner xinetd[2343]: Reading included configuration file: /etc/xinetd.d/chargen [file=/etc/xinetd.conf] [line=14]
Mar 25 12:30:19 PiScanner xinetd[2343]: Reading included configuration file: /etc/xinetd.d/daytime [file=/etc/xinetd.d/daytime] [line=28]
Mar 25 12:30:19 PiScanner xinetd[2343]: Reading included configuration file: /etc/xinetd.d/discard [file=/etc/xinetd.d/discard] [line=26]
Mar 25 12:30:19 PiScanner xinetd[2343]: Reading included configuration file: /etc/xinetd.d/echo [file=/etc/xinetd.d/echo] [line=25]
Mar 25 12:30:19 PiScanner xinetd[2343]: Reading included configuration file: /etc/xinetd.d/saned [file=/etc/xinetd.d/saned] [line=26]
Mar 25 12:30:19 PiScanner xinetd[2343]: Reading included configuration file: /etc/xinetd.d/time [file=/etc/xinetd.d/time] [line=12]
Mar 25 12:30:19 PiScanner xinetd[2343]: removing chargen
Mar 25 12:30:19 PiScanner xinetd[2343]: removing chargen
Mar 25 12:30:19 PiScanner xinetd[2343]: removing daytime
Mar 25 12:30:19 PiScanner xinetd[2343]: removing daytime
Mar 25 12:30:19 PiScanner xinetd[2343]: removing discard
Mar 25 12:30:19 PiScanner xinetd[2343]: removing discard
Mar 25 12:30:19 PiScanner xinetd[2343]: removing echo
Mar 25 12:30:19 PiScanner xinetd[2343]: removing echo
Mar 25 12:30:19 PiScanner xinetd[2343]: removing time
Mar 25 12:30:19 PiScanner xinetd[2343]: removing time
Mar 25 12:30:19 PiScanner xinetd[2343]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in.
Mar 25 12:30:19 PiScanner xinetd[2343]: Started working: 1 available service
However when i search for the sane service, it is not listed

Code: Select all

pi@PiScanner ~ $ ps aux |grep saned
pi        2543  0.0  0.3   3552  1664 pts/0    S+   12:40   0:00 grep --color=auto saned

pi@PiScanner ~ $ sudo service saned status
saned: unrecognized service
Without the xinetd saned file the scanner is only seen locally

Code: Select all

pi@PiScanner ~ $ scanimage -L
device `fujitsu:fi-4220C2dj:100742' is a FUJITSU fi-4220C2dj scanner
With the xinetd saned file the scanner is also recognized witht the net backend.

Code: Select all

pi@PiScanner ~ $ scanimage -L
device `fujitsu:fi-4220C2dj:100742' is a FUJITSU fi-4220C2dj scanner
device `net:localhost:fujitsu:fi-4220C2dj:100742' is a FUJITSU fi-4220C2dj scanner
The larger issue is this. When i issue the scanimage -L , syslog reports
Mar 25 12:43:00 PiScanner saned[2557]: saned (AF-indep+IPv6) from sane-backends 1.0.24 starting up

Code: Select all

Mar 25 12:43:00 PiScanner saned[2557]: check_host: access by remote host: 127.0.0.1
Mar 25 12:43:00 PiScanner saned[2557]: init: access granted to pi@127.0.0.1
Mar 25 12:43:01 PiScanner saned[2557]: saned exiting
when i execute sane syslog reports

Code: Select all

[b]Mar 25 12:46:19 PiScanner saned[2590]: saned (AF-indep+IPv6) from sane-backends 1.0.24 starting up
Mar 25 12:46:19 PiScanner saned[2590]: check_host: getpeername failed: Socket operation on non-socket
Mar 25 12:46:19 PiScanner saned[2590]: init: access by host [error] denied
Mar 25 12:46:19 PiScanner saned[2590]: saned exiting[/b]
which is causing other problems. is all this normal? thank you in advance.

Return to “Raspberry Pi OS”