The documentation you linked to mentions an EnvironmentFile variable you can declare in your unit file, saying: "EnvironmentFile points to the location where environment variables for the service are
defined".
Also, there's an example of an "emacs service" which uses a variable called Environment, where you can declare env vars inline.

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/sect-Managing_Services_with_systemd-Unit_Files.html

Maybe that can help

On 04/13/2015 03:08 PM, Nacho B wrote:
From the systemd guide at https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/chap-Managing_Services_with_systemd.html I have just read that:

System services do not inherit any context (such as the HOME and PATH environment variables) from the invoking user and their session. Each service runs in a clean execution context.

So my tryout using $HOME is wrong. An absolute path must be used.

But if "each service runs in a clean execution context", how can it use the PerlBrew Perl and find hypnotoad and mojolicious itself?  

Nacho B.


--
You received this message because you are subscribed to the Google Groups "Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

--
You received this message because you are subscribed to the Google Groups "Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to