mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
exec: Pass name of node and config path via environment variable to sub-process
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
parent
49523a5076
commit
1df089e185
1 changed files with 4 additions and 0 deletions
|
@ -122,6 +122,10 @@ int ExecNode::prepare() {
|
|||
}
|
||||
|
||||
int ExecNode::start() {
|
||||
// Pass configuration file and node-name via environemnt
|
||||
environment["VILLAS_NODE_CONFIG"] = configPath;
|
||||
environment["VILLAS_NODE_NAME"] = name_short;
|
||||
|
||||
// Start subprocess
|
||||
proc = std::make_unique<Popen>(command, arguments, environment, working_dir,
|
||||
shell);
|
||||
|
|
Loading…
Add table
Reference in a new issue