<div dir="ltr"><div><div><div><div><div>Just to check, have you performed a web search for this information?<br><br></div>While I don't know exactly what you're looking for, the very first result I get for "UPSTART_SESSION" is <a href="https://wiki.ubuntu.com/FoundationsTeam/Specs/RaringUpstartUserSessions">https://wiki.ubuntu.com/FoundationsTeam/Specs/RaringUpstartUserSessions</a> .<br><br></div>A little down the page is the following:<br><br>"D-Bus<br><br>Each Session Init daemon will register a D-Bus address of:<br><br>"unix:abstract=/com/ubuntu/upstart-session/$USER/$PID"<br><br>Where "$USER" corresponds to the username and "$PID" corresponds to the PID of the Session Init.<br><br>The path will be exported as UPSTART_SESSION in the environment of all child processes of the users Session Init and initctl will use that variable when the Session Init can't be found on the session bus. All child processes will also contain a variable specifying the PID of the Session Init they are being managed by: $UPSTART_SESSION_PID.<br><br>The Session Init will store the address of the session in $HOME/.cache/upstart/sessions/$PID.log using familiar shell syntax:<br><br>UPSTART_SESSION=$UPSTART_SESSION<br><br>The $PID.log file will be removed on successful Session shutdown."<br><br></div>As Dimitri suggested, if instead of asking a series of single questions you gave some idea about what you are trying to do the advice could be rather more helpful. It's also not a wonderful idea to ask the same question twice and suggests you're not really reading the responses you're getting.<br><br></div>Best,<br><br></div>Jonathon<br><div><div><div><br><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On 11 January 2016 at 08:06, <a href="mailto:yankun@iscas.ac.cn" target="_blank">yankun@iscas.ac.cn</a> <span dir="ltr"><<a href="mailto:yankun@iscas.ac.cn" target="_blank">yankun@iscas.ac.cn</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
<div><span></span>Can you tell me where did  ubuntu15.04 define the environment variables "UPSTART_SESSION"  ?</div>
<div><br></div><hr style="width:210px;min-height:1px" align="left" color="#b5c4df" size="1">
<div><span><div style="margin:10px;font-family:verdana;font-size:10pt"><div><a href="mailto:yankun@iscas.ac.cn" target="_blank">yankun@iscas.ac.cn</a></div></div></span></div>
<blockquote style="margin-top:0px;margin-bottom:0px;margin-left:0.5em"><div> </div><div style="border-width:1pt medium medium;border-style:solid none none;border-color:rgb(181,196,223) -moz-use-text-color -moz-use-text-color;padding:3pt 0cm 0cm"><div style="padding:8px;font-size:12px;font-family:tahoma;color:rgb(0,0,0);background:none repeat scroll 0% 0% rgb(239,239,239)"><div><b>From:</b> <a href="mailto:xnox@ubuntu.com" target="_blank">Dimitri John Ledkov</a></div><div><b>Date:</b> 2016-01-08 20:52</div><div><b>To:</b> <a href="mailto:yankun@iscas.ac.cn" target="_blank">yankun@iscas.ac.cn</a></div><div><b>CC:</b> <a href="mailto:ubuntu-devel-discuss@lists.ubuntu.com" target="_blank">ubuntu-devel-discuss</a></div><div><b>Subject:</b> Re: Re: about upstart</div></div></div><div><div>Hi,</div>
<div> </div>
<div>You have asked a lot of questions already. Could you maybe elaborate</div>
<div>what are you investigating overall? Or what are you trying to achieve?</div>
<div>Answering questions one by one is not very productive.</div>
<div> </div>
<div>UPSTART_SESSION variable points at private unix socket that one can</div>
<div>use to communicate with a user session upstart. When present in the</div>
<div>environment, initctl and other tools use that socket to talk to the</div>
<div>user upstart session.</div>
<div> </div>
<div>Regards,</div>
<div> </div>
<div>Dimitri.</div>
<div> </div>
<div>On 8 January 2016 at 01:55, <a href="mailto:yankun@iscas.ac.cn" target="_blank">yankun@iscas.ac.cn</a> <<a href="mailto:yankun@iscas.ac.cn" target="_blank">yankun@iscas.ac.cn</a>> wrote:</div>
<div>></div>
<div>></div>
<div>> Where is the definition of environment variable "UPSTART_SESSION"</div>
<div>></div>
<div>></div>
<div>> From: Martin Pitt</div>
<div>> Date: 2016-01-07 17:54</div>
<div>> To: <a href="mailto:yankun@iscas.ac.cn" target="_blank">yankun@iscas.ac.cn</a></div>
<div>> CC: ubuntu-devel-discuss</div>
<div>> Subject: Re: Re: about upstart</div>
<div>> <a href="mailto:yankun@iscas.ac.cn" target="_blank">yankun@iscas.ac.cn</a> [2016-01-07 15:20 +0800]:</div>
<div>>> How does ubuntu solve the the problem “initctl can not use when</div>
<div>>> /sbin/upstart and systemd in ubuntu14.10”.And  how is the reasion?</div>
<div>></div>
<div>> Sorry, I cannot parse this.</div>
<div>></div>
<div>> You use "initctl" as user for the user upstart, and you don't use it</div>
<div>> as root for system services when the system is running systemd.</div>
<div>></div>
<div>> Martin</div>
<div>></div>
<div>> --</div>
<div>> Martin Pitt                        | <a href="http://www.piware.de" target="_blank">http://www.piware.de</a></div>
<div>> Ubuntu Developer (<a href="http://www.ubuntu.com" target="_blank">www.ubuntu.com</a>)  | Debian Developer  (<a href="http://www.debian.org" target="_blank">www.debian.org</a>)</div>
<div>></div>
<div>></div>
<div>> --</div>
<div>> Ubuntu-devel-discuss mailing list</div>
<div>> <a href="mailto:Ubuntu-devel-discuss@lists.ubuntu.com" target="_blank">Ubuntu-devel-discuss@lists.ubuntu.com</a></div>
<div>> Modify settings or unsubscribe at:</div>
<div>> <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss</a></div>
<div>></div>
<div> </div><span><font color="#888888">
<div>-- </div>
<div>Regards,</div>
<div> </div>
<div>Dimitri.</div>
</font></span></div></blockquote>
</div><br>--<br>
Ubuntu-devel-discuss mailing list<br>
<a href="mailto:Ubuntu-devel-discuss@lists.ubuntu.com" target="_blank">Ubuntu-devel-discuss@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss</a><br>
<br></blockquote></div><br></div></div></div></div></div></div></div></div>