systemd: Is it wrong?

Lennart Poettering mzerqung at 0pointer.de
Mon Jul 11 17:55:23 UTC 2011


On Mon, 11.07.11 13:43, Steve Dickson (SteveD at redhat.com) wrote:

> > the variable evaluates to the empty string, not 0, so the sysctl
> invocation fails. I don't think unit files support advanced bash
> syntax like ${LOCKD_TCPPORT:-0} ...
>
> that would be nice... But defining it to zero is no biggie...

You can use Environment= in unit files to set defaults, which are then
overriden by EnvironmentFile=.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the devel mailing list