Re: Majordomo resultst

Andreas Dilger (adilger@enel.ucalgary.ca)
Wed, 7 Oct 1998 21:19:19 -0600 (MDT)

You write:
> Having read all info on the matter that I can find, mainly 'man saned' and
> 'man sane-net', I am still confused as to how saned is run as a deamond?
>
> After putting the entries in /etc/inetd.conf
> #sane stream tcp nowait nobody /usr/local/sbin/saned saned
> sane stream tcp nowait nobody.nobody /usr/local/sbin/saned saned
>
> and /etc/services,
> sane 6566/tcp # SANE network scanner daemon
>
> and rebooting, it does nothing, no messages in the log files, nothing.
[snip]
> [root@home ~]# /usr/local/sbin/saned -d
> saned: could not find `saned' service (Connection refused)
> saned: using default port 6566

The older version of sane had a source/documentation mismatch, in that it
looked for the saned port, but the documentation said to use "sane". The
newer version uses "sane" as it should. Now, the reason that you don't
get any messages about sane starting when you put it into /etc/services
is because the daemon doesn't actually start until you try to connect
to it. This is what /etc/services and /etc/inetd.conf do for you - it
automatically starts and stops daemons for you when needed, so that you
don't have tons of them around which aren't doing anything.

Cheers, Andreas

-- 
Andreas Dilger  University of Calgary \ "If a man ate a pound of pasta and
                Micronet Research Group \ a pound of antipasto, would they
Dept of Electrical & Computer Engineering \  cancel out, leaving him still
<http://www-mddsp.enel.ucalgary.ca/People/adilger/>    hungry?" -- Dogbert

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com