[systemd-devel] Creating unit file - conditional process arguments
Michal Schmidt
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:
> 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
More information about the systemd-devel
mailing list