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?
signature.asc
Description: This is a digitally signed message part
-- upstart-devel mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/upstart-devel
