Re: systemd: Is it wrong?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2011/7/11 Steve Dickson <SteveD@xxxxxxxxxx>
> Hmm? Shell only understands strings, too. What precisely are you asking for?
in /etc/sysconfig/nfsservices
set LOCKD_TCPPORT=234

In nfsservice.service

EnvironmentFile=-/etc/sysconfig/nfsservices
ExecStartPre=/sbin/sysctl -w $LOCKD_TCPPORT

to work.

That is supposed to work. However, if /etc/sysconfig/nfsservices reads:
#set LOCKD_TCPPORT=234

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} ...

Florian

-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux