[sane-devel] saned at service environment question

Louis Lagendijk louis at fazant.net
Wed Dec 6 17:20:22 UTC 2017


On Wed, 2017-12-06 at 20:27 +0900, Olaf Meeuwissen wrote:
> Hi,
> 
> Apologies for the belated reply.
> 
> ToddAndMargo writes:
> 
> > On 11/25/2017 01:09 AM, Olaf Meeuwissen wrote:
> > > Hi ToddAndMargo,
> > > 
> > > ToddAndMargo writes:
> > > 
> > > > Dear list,
> > > > 
> > > > In the man page, the script for saned at .service shows:
> > > 
> > > # OK, you are reading the documentation, just rather selectively
> > > ;-)
> > > 
> > > > Environment=SANE_CONFIG_DIR=/etc/sane.d
> > > > # If you need to debug your configuration uncomment the next
> > > > line and
> > > > # change it as appropriate to set the desired debug options
> > > > # Environment=SANE_DEBUG_DLL=255 SANE_DEBUG_BJNP=5
> > > > 
> > > > https://bugzilla.redhat.com/show_bug.cgi?id=1091566#c8
> > > > also adds:
> > > > 
> > > > #Environment=SANE_DEBUG_DLL=128 SANE_DEBUG_NET=128
> > > > 
> > > > Question:
> > > > Do you un-comment the all, or only uncomment one of them?
> > > 
> > > You add the SANE_DEBUG_* variables for the backends you want to
> > > debug.
> > > In your case, you probably want to look at least at
> > > SANE_DEBUG_DLL and
> > > SANE_DEBUG_NET and the backend that supports your particular
> > > scanner.
> > > 
> > > > Question:
> > > > 
> > > > Should it not be?
> > > > 
> > > > Environment=SANE_CONFIG_DIR=/etc/sane.d SANE_DEBUG_DLL=255
> > > > SANE_DEBUG_BJNP=5 SANE_DEBUG_NET=128
> > > > 
> > > > all run togther with spaces as the demlimier?
> > > 
> > > Please read the systemd documentation.  I vaguely seem to
> > > remember all
> > > the Environment "assignments" are run together by systemd,
> > > though.
> > > 
> > > # Disclaimer: I no longer use systemd.
> > > 
Yes, systemd concatenates multiple Environment statements, se for
example:
https://coreos.com/os/docs/latest/using-environment-variables-in-system
d-units.html
> > > > Questions:
> > > > 
> > > > What is
> > > >         SANE_CONFIG_DIR=/etc/sane.d
> > > 
> > > An environment variable that tells the dll (and most other
> > > backends)
> > > where to look for their configuration.  See sane-dll(5).
> > > 
> > > >         SANE_DEBUG_DLL=255
> > > >         SANE_DEBUG_BJNP=5, and
> > > >         SANE_DEBUG_NET=128
> > > 
> > > Environment variables that tell each of the backend how much to
> > > log.
> > > Larger values produce more output.  What and how much exactly
> > > differs
> > > between backends.
And please check man-<backend> for the details of a specific backend

BR, Louis



More information about the sane-devel mailing list