<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.17023" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=109321001-22042010><FONT face=Arial
size=2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=109321001-22042010><FONT face=Arial size=2>I have 2 jobs
</FONT></SPAN></DIV>
<DIV><SPAN class=109321001-22042010><FONT face=Arial
size=2>foo</FONT></SPAN></DIV>
<DIV><SPAN class=109321001-22042010><FONT face=Arial
size=2>----</FONT></SPAN></DIV>
<DIV><SPAN class=109321001-22042010><FONT face=Arial size=2>env
NAME=foo<BR>export NAME<BR>console output<BR>script<BR> echo "INSIDE
[$UPSTART_JOB]. NAME:[$NAME]"<BR> exec sleep 500<BR>end
script<BR></FONT></SPAN></DIV>
<DIV><SPAN class=109321001-22042010><FONT face=Arial
size=2>foo1</FONT></SPAN></DIV>
<DIV><SPAN class=109321001-22042010><FONT face=Arial
size=2>-----</FONT></SPAN></DIV>
<DIV><SPAN class=109321001-22042010><FONT face=Arial size=2>start on started
foo<BR>env NAME=foo1<BR>export NAME<BR>console output<BR>script<BR>
echo "INSIDE [$UPSTART_JOB]. NAME:[$NAME]"<BR>end script<BR></FONT></SPAN></DIV>
<DIV><SPAN class=109321001-22042010><FONT face=Arial size=2>When I start foo, I
see that the NAME being exported from foo is taking precedence over the local
environment variable defined in foo1.</FONT></SPAN></DIV>
<DIV><SPAN class=109321001-22042010><FONT face=Arial size=2>Is this a
bug?</FONT></SPAN></DIV>
<DIV><SPAN class=109321001-22042010><FONT face=Arial size=2>I will see if I can
overrite the inherited environement with the local environment
variables before spawning the job.</FONT></SPAN></DIV>
<DIV><SPAN class=109321001-22042010><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=109321001-22042010><FONT face=Arial size=2>Here is the console
output</FONT></SPAN></DIV>
<DIV><SPAN class=109321001-22042010><FONT face=Arial
size=2>---------</FONT></SPAN></DIV>
<DIV><SPAN class=109321001-22042010><FONT face=Arial
size=2>[nova_k10:/etc/init/jobs.d]$ start foo<BR>[nova_k10:/etc/init/jobs.d]$
INSIDE [foo1]. NAME:[foo]<BR>INSIDE [foo]. NAME:[foo]<BR></FONT></SPAN></DIV>
<DIV><SPAN class=109321001-22042010><FONT face=Arial
size=2>---------</FONT></SPAN></DIV>
<DIV><SPAN class=109321001-22042010><FONT face=Arial size=2>Output from
/var/log/messages</FONT></SPAN></DIV>
<DIV><SPAN class=109321001-22042010><FONT face=Arial size=2>Apr 21 13:06:04
nova_k10 init: foo goal changed from stop to start<BR>Apr 21 13:06:04 nova_k10
init: foo state changed from waiting to starting<BR>Apr 21 13:06:04 nova_k10
init: Handling starting event<BR>Apr 21 13:06:04 nova_k10 init: foo state
changed from starting to pre-start<BR>Apr 21 13:06:04 nova_k10 init: foo state
changed from pre-start to spawned<BR>Apr 21 13:06:04 nova_k10 init: foo main
process (3808)<BR>Apr 21 13:06:04 nova_k10 init: foo state changed from spawned
to post-start<BR>Apr 21 13:06:04 nova_k10 init: foo state changed from
post-start to running<BR>Apr 21 13:06:04 nova_k10 init: Handling started
event<BR>Apr 21 13:06:04 nova_k10 init: foo1 goal changed from stop to
start<BR>Apr 21 13:06:04 nova_k10 init: foo1 state changed from waiting to
starting<BR>Apr 21 13:06:04 nova_k10 init: Handling starting event<BR>Apr 21
13:06:04 nova_k10 init: foo1 state changed from starting to pre-start<BR>Apr 21
13:06:04 nova_k10 init: foo1 state changed from pre-start to spawned<BR>Apr 21
13:06:04 nova_k10 init: foo1 main process (3810)<BR>Apr 21 13:06:04 nova_k10
init: foo1 state changed from spawned to post-start<BR>Apr 21 13:06:04 nova_k10
init: foo1 state changed from post-start to running<BR>Apr 21 13:06:04 nova_k10
init: Handling started event<BR>Apr 21 13:06:04 nova_k10 init: foo1 main process
(3810) exited normally<BR>Apr 21 13:06:04 nova_k10 init: foo1 goal changed from
start to stop<BR>Apr 21 13:06:04 nova_k10 init: foo1 state changed from running
to stopping<BR>Apr 21 13:06:04 nova_k10 init: Handling stopping event<BR>Apr 21
13:06:04 nova_k10 init: foo1 state changed from stopping to killed<BR>Apr 21
13:06:04 nova_k10 init: foo1 state changed from killed to post-stop<BR>Apr 21
13:06:04 nova_k10 init: foo1 state changed from post-stop to waiting<BR>Apr 21
13:06:04 nova_k10 init: Handling stopped event<BR></FONT></SPAN><SPAN
class=109321001-22042010><FONT face=Arial size=2></FONT></SPAN></DIV>
<DIV><SPAN class=109321001-22042010><FONT face=Arial
size=2>Thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=109321001-22042010><FONT face=Arial
size=2>Sandeep</DIV></FONT></SPAN></BODY></HTML>