Skip to content

Commit

Permalink
Set the OPENSVC_SVC_ID the app resources exec env
Browse files Browse the repository at this point in the history
As we forge a specific env for each Popen, we must include this variable that
app.simple relies on to decide if its owned process runs.
  • Loading branch information
cvaroqui committed Oct 5, 2018
1 parent e7997a0 commit ab3d88f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/resApp.py
Expand Up @@ -576,6 +576,7 @@ def common_popen_kwargs(self, cmd):
if "env" in kwargs:
kwargs["env"]["OPENSVC_RID"] = self.rid
kwargs["env"]["OPENSVC_SVCNAME"] = self.svc.svcname
kwargs["env"]["OPENSVC_SVC_ID"] = self.svc.id
return kwargs

def _run_cmd_dedicated_log(self, action, cmd):
Expand Down

0 comments on commit ab3d88f

Please sign in to comment.