about upstart

J Fernyhough j.fernyhough at gmail.com
Mon Jan 11 08:54:12 UTC 2016


Just to check, have you performed a web search for this information?

While I don't know exactly what you're looking for, the very first result I
get for "UPSTART_SESSION" is
https://wiki.ubuntu.com/FoundationsTeam/Specs/RaringUpstartUserSessions .

A little down the page is the following:

"D-Bus

Each Session Init daemon will register a D-Bus address of:

"unix:abstract=/com/ubuntu/upstart-session/$USER/$PID"

Where "$USER" corresponds to the username and "$PID" corresponds to the PID
of the Session Init.

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.

The Session Init will store the address of the session in
$HOME/.cache/upstart/sessions/$PID.log using familiar shell syntax:

UPSTART_SESSION=$UPSTART_SESSION

The $PID.log file will be removed on successful Session shutdown."

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.

Best,

Jonathon


On 11 January 2016 at 08:06, yankun at iscas.ac.cn <yankun at iscas.ac.cn> wrote:

> Can you tell me where did  ubuntu15.04 define the environment variables
> "UPSTART_SESSION"  ?
>
> ------------------------------
> yankun at iscas.ac.cn
>
>
> *From:* Dimitri John Ledkov <xnox at ubuntu.com>
> *Date:* 2016-01-08 20:52
> *To:* yankun at iscas.ac.cn
> *CC:* ubuntu-devel-discuss <ubuntu-devel-discuss at lists.ubuntu.com>
> *Subject:* Re: Re: about upstart
> Hi,
>
> You have asked a lot of questions already. Could you maybe elaborate
> what are you investigating overall? Or what are you trying to achieve?
> Answering questions one by one is not very productive.
>
> UPSTART_SESSION variable points at private unix socket that one can
> use to communicate with a user session upstart. When present in the
> environment, initctl and other tools use that socket to talk to the
> user upstart session.
>
> Regards,
>
> Dimitri.
>
> On 8 January 2016 at 01:55, yankun at iscas.ac.cn <yankun at iscas.ac.cn> wrote:
> >
> >
> > Where is the definition of environment variable "UPSTART_SESSION"
> >
> >
> > From: Martin Pitt
> > Date: 2016-01-07 17:54
> > To: yankun at iscas.ac.cn
> > CC: ubuntu-devel-discuss
> > Subject: Re: Re: about upstart
> > yankun at iscas.ac.cn [2016-01-07 15:20 +0800]:
> >> How does ubuntu solve the the problem “initctl can not use when
> >> /sbin/upstart and systemd in ubuntu14.10”.And  how is the reasion?
> >
> > Sorry, I cannot parse this.
> >
> > You use "initctl" as user for the user upstart, and you don't use it
> > as root for system services when the system is running systemd.
> >
> > Martin
> >
> > --
> > Martin Pitt                        | http://www.piware.de
> > Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
> >
> >
> > --
> > Ubuntu-devel-discuss mailing list
> > Ubuntu-devel-discuss at lists.ubuntu.com
> > Modify settings or unsubscribe at:
> > https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss
> >
>
> --
> Regards,
>
> Dimitri.
>
>
> --
> Ubuntu-devel-discuss mailing list
> Ubuntu-devel-discuss at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-devel-discuss/attachments/20160111/46ae82f3/attachment.html>


More information about the Ubuntu-devel-discuss mailing list