Discussion:
saned@service environment question
(too old to reply)
ToddAndMargo
2017-11-25 02:54:52 UTC
Permalink
Dear list,

In the man page, the script for ***@.service shows:

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?

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?

Questions:

What is
SANE_CONFIG_DIR=/etc/sane.d
SANE_DEBUG_DLL=255
SANE_DEBUG_BJNP=5, and
SANE_DEBUG_NET=128
--
sane-devel mailing list: sane-***@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-***@lists.alioth.debian.org
Olaf Meeuwissen
2017-11-25 09:09:09 UTC
Permalink
Hi ToddAndMargo,
Post by ToddAndMargo
Dear list,
# OK, you are reading the documentation, just rather selectively ;-)
Post by ToddAndMargo
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
#Environment=SANE_DEBUG_DLL=128 SANE_DEBUG_NET=128
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.
Post by ToddAndMargo
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.
Post by ToddAndMargo
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).
Post by ToddAndMargo
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.

Hope this helps,
--
Olaf Meeuwissen, LPIC-2 FSF Associate Member since 2004-01-27
GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13 F43E B8A4 A88A F84A 2DD9
Support Free Software https://my.fsf.org/donate
Join the Free Software Foundation https://my.fsf.org/join
--
sane-devel mailing list: sane-***@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-***@lists.alioth.debian.org
ToddAndMargo
2017-11-25 09:33:11 UTC
Permalink
Post by Olaf Meeuwissen
Hi ToddAndMargo,
Post by ToddAndMargo
Dear list,
# OK, you are reading the documentation, just rather selectively ;-)
Post by ToddAndMargo
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
#Environment=SANE_DEBUG_DLL=128 SANE_DEBUG_NET=128
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.
Post by ToddAndMargo
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.
Post by ToddAndMargo
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).
Post by ToddAndMargo
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.
Hope this helps,
Not really, but thank you for trying.

What systemd documentation are you speaking of?
--
sane-devel mailing list: sane-***@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-***@lists.alioth.debian.org
Olaf Meeuwissen
2017-12-06 11:27:32 UTC
Permalink
Hi,

Apologies for the belated reply.
Post by ToddAndMargo
Post by Olaf Meeuwissen
Hi ToddAndMargo,
Post by ToddAndMargo
Dear list,
# OK, you are reading the documentation, just rather selectively ;-)
Post by ToddAndMargo
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
#Environment=SANE_DEBUG_DLL=128 SANE_DEBUG_NET=128
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.
Post by ToddAndMargo
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.
Post by ToddAndMargo
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).
Post by ToddAndMargo
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.
Hope this helps,
Not really, but thank you for trying.
What systemd documentation are you speaking of?
The documentation you get from `man systemd` and what it lists in the
SEE ALSO section.

Hope this helps,
--
Olaf Meeuwissen, LPIC-2 FSF Associate Member since 2004-01-27
GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13 F43E B8A4 A88A F84A 2DD9
Support Free Software https://my.fsf.org/donate
Join the Free Software Foundation https://my.fsf.org/join
--
sane-devel mailing list: sane-***@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-***@lists.alioth.debian.org
Louis Lagendijk
2017-12-06 17:20:22 UTC
Permalink
Post by Olaf Meeuwissen
Hi,
Apologies for the belated reply.
Post by Olaf Meeuwissen
Hi ToddAndMargo,
Post by ToddAndMargo
Dear list,
# OK, you are reading the documentation, just rather selectively ;-)
Post by ToddAndMargo
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
#Environment=SANE_DEBUG_DLL=128 SANE_DEBUG_NET=128
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.
Post by ToddAndMargo
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
Post by Olaf Meeuwissen
Post by Olaf Meeuwissen
Post by ToddAndMargo
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).
Post by ToddAndMargo
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
--
sane-devel mailing list: sane-***@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-***@lists.alioth.debian.org
Loading...