On 17/08/14 10:38, Thomas Goirand wrote:
> I had the same problem as you describe above, even a bit more
> complicated because, in what we did, /etc/default/<file> sometimes
> doesn't exist (it's not mandatory in what we did).

EnvironmentFile takes precedence over Environment, and EnvironmentFile
starting with - means "do not fail if it is missing" (syntax inspired by
"-include more-rules.mk" in GNU make, I think), so you can do something
like:

Environment=FOO_VERBOSE=-v
# yes this is really the syntax if it contains spaces, see the man page
Environment="FOO_PLUGINS=foo bar misc other"
# override FOO_VERBOSE, FOO_PLUGINS if present
EnvironmentFile=-/etc/default/foo
Exec=/usr/lib/foo/foo-daemon $FOO_VERBOSE

Regards,
    S


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/53f08f54.6010...@debian.org

Reply via email to