Session scripts.
Scott James Remnant
scott at netsplit.com
Mon Oct 5 17:04:45 BST 2009
On Mon, 2009-10-05 at 12:03 +0200, Stef Bon wrote:
> > It should be easy enough to patch your session manager to do that, and
> > even include environment such as $DISPLAY, $SSH_AUTH_SOCK, etc.
> >
>
> Ok, how? I can make ConsoleKit send something with initctl emit like:
>
> initctl emit sessionadded USER=%USER% CK_SESSION_ID=..
>
> and
>
> initctl emit sessionremoved USER=%USER% CK_SESSION_ID=
>
> and in /etc/init:
>
> sessionadded.conf
>
> start on sessionadded
>
> exec add_mount_point_for_this_user $USER
>
> and simular for sessionremoved.
>
That's exactly how.
> >> Futher, I've installed the newest upstart package (0.6.3) and found out
> >> that the /etc/event.d directory is not used anymore, I had to create
> >> the tty.conf files myself....It would be much better when there is
> >> documentation about this.
> >>
> >>
> > There's plenty: man init
> >
> No, be serious. There is nothing there about the layout of tty.conf
> files in the init directory.
>
Absolutely there is. From "man init":
Processes managed by init are known as jobs and are defined by
files in the /etc/init directory. See init(5) for more details.
So then read that manual page, "man 5 init". You'll find several
hundred lines of description of the format of those files.
Scott
--
Have you ever, ever felt like this?
Had strange things happen? Are you going round the twist?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/upstart-devel/attachments/20091005/b6dfccea/attachment-0001.pgp
More information about the upstart-devel
mailing list