[sane-devel] how to make saned start with redhat 7.1's init?

Henning Meier-Geinitz henning@meier-geinitz.de
Sun, 28 Oct 2001 13:28:55 +0100


On Sun, Oct 28, 2001 at 01:21:08PM +0800, Ka Chun, Cheng wrote:
> if I start saned -d
> and start win xsane in my windoze, I can scan correctly, but saned
> exit after I close the xsane. so far so good.

That's intentional. -d is for debugging only.

> now I want to make it start up everytime when I boot, and last forever.

Use inetd or xinetd for this. That's explained in the man page (man
saned) and at the saned homepage: http://home.nexgo.de/jochen.eisinger/saned/

> I'm using redhat linux 7.1, seems the FAQ only cover 7.0. the
> interface looks different

Are you talking about the SANE FAQ?

> I did put this line to my /etc/services
> sane 6566/tcp # SANE network scanner daemon


> I did create the user saned


> I put a sane start up code in 
> /etc/init.d/sane
> which contain only 1 line.
> /usr/local/sbin/saned

Why? This can't work. If you start saned without "-d", it will wait
for data on stdin. This only works with xinetd or inetd.

Put it into the configuration file (or directory) of xinetd or inetd,
whatever RedHat 7.2 ships with.

> sane show up in kde's SysInitV editor, but starting the service
> doesn't work. 

You can't start saned from the init scripts.