On Thu, 2015-08-13 at 16:30 +0800, Ed Greshko wrote:
On 08/13/15 16:17, Christopher Ross wrote:
> So if your glib statement "The answer you seek is in the man
> pages." is true I cannot find it.
man -K EnvironmentFile
takes you first directly to SYSTEMD.EXEC(5). Where you type
/EnvironmentFile which brings you to the definition of
EnvironmentFile= and includes the following in the second paragraph.
Konsole output The argument passed should be an absolute filename or
wildcard
expression, optionally prefixed with "-", which indicates that if
the file does not exist, it will not be read and no error or warning
message is logged. This option may be specified more than once in
which case all specified files are read. If the empty string is
assigned to this option, the list of file to read is reset, all
prior assignments have no effect.
Which answer the question "So, what's with the hyphen after = ?? "
Except that:
grep "=-" /usr/lib/systemd/*/*
throws up a whole bunch of of hits which don't include the word
EnvironmentFile. IOW this syntax is not specific to that word, so the
fact that you found it with "man -K EnvironmentFile" is merely a lucky
guess. If you had done the above grep first, you most likely would not
have thought of it (as I didn't).
I still await some identification of where the general rule is
specified.
This is *not* good documentation.
poc