Re: Re: about upstart

2016-01-11 Thread yan...@iscas.ac.cn
Can you tell me where did  ubuntu15.04 define the environment variables 
"UPSTART_SESSION"  ?



yan...@iscas.ac.cn
 
From: Dimitri John Ledkov
Date: 2016-01-08 20:52
To: yan...@iscas.ac.cn
CC: ubuntu-devel-discuss
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, yan...@iscas.ac.cn <yan...@iscas.ac.cn> wrote:
>
>
> Where is the definition of environment variable "UPSTART_SESSION"
>
>
> From: Martin Pitt
> Date: 2016-01-07 17:54
> To: yan...@iscas.ac.cn
> CC: ubuntu-devel-discuss
> Subject: Re: Re: about upstart
> yan...@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@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@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Re: about upstart

2016-01-11 Thread J Fernyhough
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, yan...@iscas.ac.cn <yan...@iscas.ac.cn> wrote:

> Can you tell me where did  ubuntu15.04 define the environment variables
> "UPSTART_SESSION"  ?
>
> --
> yan...@iscas.ac.cn
>
>
> *From:* Dimitri John Ledkov <x...@ubuntu.com>
> *Date:* 2016-01-08 20:52
> *To:* yan...@iscas.ac.cn
> *CC:* ubuntu-devel-discuss <ubuntu-devel-discuss@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, yan...@iscas.ac.cn <yan...@iscas.ac.cn> wrote:
> >
> >
> > Where is the definition of environment variable "UPSTART_SESSION"
> >
> >
> > From: Martin Pitt
> > Date: 2016-01-07 17:54
> > To: yan...@iscas.ac.cn
> > CC: ubuntu-devel-discuss
> > Subject: Re: Re: about upstart
> > yan...@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@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@lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss
>
>
-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Re: about upstart

2016-01-11 Thread Oliver Grawert
hi,
Am Montag, den 11.01.2016, 16:06 +0800 schrieb yan...@iscas.ac.cn:
> Can you tell me where did  ubuntu15.04 define the environment
> variables "UPSTART_SESSION"  ?

upstart generates it when it starts the upstart user session.

ciao
oli

signature.asc
Description: This is a digitally signed message part
-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Re: about upstart

2016-01-08 Thread Dimitri John Ledkov
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, yan...@iscas.ac.cn <yan...@iscas.ac.cn> wrote:
>
>
> Where is the definition of environment variable "UPSTART_SESSION"
>
>
> From: Martin Pitt
> Date: 2016-01-07 17:54
> To: yan...@iscas.ac.cn
> CC: ubuntu-devel-discuss
> Subject: Re: Re: about upstart
> yan...@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@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@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Re: about upstart

2016-01-07 Thread Martin Pitt
yan...@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@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Re: about upstart

2016-01-07 Thread yan...@iscas.ac.cn


Where is the definition of environment variable "UPSTART_SESSION"
 
From: Martin Pitt
Date: 2016-01-07 17:54
To: yan...@iscas.ac.cn
CC: ubuntu-devel-discuss
Subject: Re: Re: about upstart
yan...@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@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Re: about upstart

2016-01-06 Thread yan...@iscas.ac.cn
Thanks for your reply.Is there any other reasion.By "pstree",the pulseaudio is 
started by upstart.I mean,even when I choose systemd as the init daemon.I can 
not remove upstart in Ubuntu15.04 ?



yan...@iscas.ac.cn
 
From: Martin Pitt
Date: 2016-01-06 16:59
To: yan...@iscas.ac.cn
CC: ubuntu-devel-discuss
Subject: Re: about upstart
Hello yankun,
 
yan...@iscas.ac.cn [2016-01-06 13:47 +0800]:
> In ubuntu15.04,there is also upstart running when systemd is the init.So why 
> to  do this ? 
 
You are most probably seeing the session upstart process. User
sessions haven't been converted away from upstart (to systemd or dbus
activation) yet.
 
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@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Re: about upstart

2016-01-06 Thread Martin Pitt
yan...@iscas.ac.cn [2016-01-06 17:16 +0800]:
> Thanks for your reply.Is there any other reasion.By "pstree",the pulseaudio 
> is started by upstart.I mean,even when I choose systemd as the init daemon.I 
> can not remove upstart in Ubuntu15.04 ?

Yes, pulseaudio is a session process and started by the session
upstart. You can't entirely remove upstart in Ubuntu yet, just
upstart-sysv for the system services.

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@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Re: about upstart

2016-01-06 Thread yan...@iscas.ac.cn

Thank you Martin.There is also a doubt: how the lightdm starts upstart? I can 
not find anything useful  in unit files ? 


yan...@iscas.ac.cn
 
From: Martin Pitt
Date: 2016-01-06 17:41
To: yan...@iscas.ac.cn
CC: ubuntu-devel-discuss
Subject: Re: Re: about upstart
yan...@iscas.ac.cn [2016-01-06 17:16 +0800]:
> Thanks for your reply.Is there any other reasion.By "pstree",the pulseaudio 
> is started by upstart.I mean,even when I choose systemd as the init daemon.I 
> can not remove upstart in Ubuntu15.04 ?
 
Yes, pulseaudio is a session process and started by the session
upstart. You can't entirely remove upstart in Ubuntu yet, just
upstart-sysv for the system services.
 
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@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Re: about upstart

2016-01-06 Thread Colin Watson
On Thu, Jan 07, 2016 at 09:04:59AM +0800, yan...@iscas.ac.cn wrote:
> Thank you Martin.There is also a doubt: how the lightdm starts
> upstart? I can not find anything useful  in unit files ? 

It's hooked up via Xsession configuration, in
/etc/X11/Xsession.d/00upstart and /etc/X11/Xsession.d/99upstart.

-- 
Colin Watson   [cjwat...@ubuntu.com]

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Re: about upstart

2016-01-06 Thread yan...@iscas.ac.cn
How does ubuntu solve the the problem “initctl can not use when /sbin/upstart 
and systemd in ubuntu14.10”.And  how is the reasion? 


yan...@iscas.ac.cn
 
From: Martin Pitt
Date: 2016-01-07 15:15
To: yan...@iscas.ac.cn
CC: ubuntu-devel-discuss
Subject: Re: Re: about upstart
Hello yankun,
 
yan...@iscas.ac.cn [2016-01-07  9:04 +0800]:
> Thank you Martin.There is also a doubt: how the lightdm starts
> upstart? I can not find anything useful  in unit files ? 
 
lightdm does not do that by itself, it's done by
/etc/X11/Xsession.d/{00,99}upstart .
 
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@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss