core: Add ExecSearchPath parameter to specify the directory relative to which binaries executed by Exec*= should be found
Currently there does not exist a way to specify a path relative to which all binaries executed by Exec should be found. The only way is to specify the absolute path. This change implements the functionality to specify a path relative to which binaries executed by Exec*= can be found. Closes #6308
This commit is contained in:
@@ -89,6 +89,20 @@
|
||||
|
||||
<variablelist class='unit-directives'>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>ExecSearchPath=</varname></term>
|
||||
|
||||
<listitem><para>Takes a colon separated list of absolute paths relative to which the executable
|
||||
used by the <varname>Exec*=</varname> (e.g. <varname>ExecStart=</varname>,
|
||||
<varname>ExecStop=</varname>, etc.) properties can be found. <varname>ExecSearchPath=</varname>
|
||||
overrides <varname>$PATH</varname> if <varname>$PATH</varname> is not supplied by the user through
|
||||
<varname>Environment=</varname>, <varname>EnvironmentFile=</varname> or
|
||||
<varname>PassEnvironment=</varname>. Assigning an empty string removes previous assignments
|
||||
and setting <varname>ExecSearchPath=</varname> to a value multiple times will append
|
||||
to the previous setting.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>WorkingDirectory=</varname></term>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user