Re: Q about Environment files of systemd

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

 



On 08/13/15 16:38, Patrick O'Callaghan wrote:
> 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.

The question was...  "So, what's with the hyphen after = ?? " in relationship to files in /usr/lib/systemd/system/irda.service containing EnvironmentFile= and 2 examples were given. 

In order to answer the question I would not have used grep since there is no need to do that as the question was well worded and succinct.

If the answer given in the man page isn't sufficient for *your* needs then you need to ask another question.

And, FWIW, ....

grep "=-" /usr/lib/systemd/system/* | grep EnvironmentFile produces many entries such as...

/usr/lib/systemd/system/ypbind.service:EnvironmentFile=-/etc/sysconfig/network
/usr/lib/systemd/system/ypbind.service:EnvironmentFile=-/etc/sysconfig/ypbind

On my system....so I'm not sure why you don't see that.



-- 
If I wanted a blog or social media I'd go elsewhere
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux