[systemd-devel] Creating unit file - conditional process arguments
mschmidt at redhat.com
Tue Nov 22 08:42:36 PST 2011
On 11/22/2011 01:27 PM, Honza Horak wrote:
> Do I have to create the same bash script and execute it like:
> 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.
More information about the systemd-devel