On 13/08/15 08:52, Christopher Ross wrote:
On 13/08/15 01:42, Ed Greshko wrote:
On 08/13/15 08:01, Ed Greshko wrote:
Being that it was a very specific question the 2 words were easy to
divine.

And, if I had my coffee, I probably would have used "-K" and a single
word before resorting to google.  Recalling, again, this to have been
a very specific question with a very unique word.


I salute your google-fu! It is not at all obvious to me. The Question is
what is the EnviromentFile and what does "=-" mean within it...

root@snoopy 08:46:58 ~ # apropos "=-"
=-: nothing appropriate.

root@snoopy 08:47:06 ~ # apropos "EnvironmentFile"
EnvironmentFile: nothing appropriate.

root@snoopy 08:50:12 ~ # apropos systemd | wc -l
155


Continuing that search then...

root@snoopy 08:50:25 ~ # apropos systemd | grep environment
systemd-detect-virt (1) - Detect execution in a virtualized environment
systemd.exec (5)     - Execution environment configuration

root@snoopy 08:53:31 ~ # man systemd.exec


...
       EnvironmentFile=
Similar to Environment= but reads the environment variables from a text file. The text file should contain new-line-separated variable assignments. Empty lines and lines starting with ; or # will be ignored, which may be used for commenting. A line ending with a backslash will be concatenated with the following one, allowing multiline variable definitions. The parser strips leading and trailing whitespace from the values of assignments, unless you
           use double quotes (").



So that's part of the question answered. The above manpage also says "See environ(7) for details about environment variables."




root@snoopy 09:07:33 ~ # man 7 environ


Unfortunately that man page makes no reference to "=-" or similar


root@snoopy 09:13:06 ~ # man bash


Neither does the bash manpage. So if your glib statement "The answer you seek is in the man pages." is true I cannot find it.

My guess is that the OP example

/usr/lib/systemd/system/irda.service:EnvironmentFile=-/etc/sysconfig/irda
/usr/lib/systemd/system/sshd.service:EnvironmentFile=/etc/sysconfig/sshd

In effect means "don't use that, use this" but I haven't confirmed that from the man page.

Regards,
Chris R.

--
users mailing list
users@lists.fedoraproject.org
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

Reply via email to