On 11/22/2011 01:27 PM, Honza Horak wrote:
Do I have to create the same bash script and execute it like:
ExecStartPre=/path/to/simple/script
ExecStart=/path/to/daemon $MYARGS

This won't work, because environment is not transferred from one execution to another.
You could solve this using a wrapper script for ExecStart instead.

or is there any better way how to do it?

The best way would be to have the daemon read its own config file.

Michal
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to