Stopping and starting the session dbusdaemon with PAM.
Robert McQueen
robert.mcqueen at collabora.co.uk
Fri Oct 21 08:21:37 PDT 2005
Stef Bon wrote:
> Hello,
>
> I've been working on a sollution to run scripts when a session begins, and
> when a session ends. This possible via the module pam_script.so.
>
> One of the things I use it for is to start the session part of dbus. The
> important environmentvariables are made available via the startupfiles of
> bash. I had to adjust my bash installation (.bash_profile) a little.
>
> When the session ends another script stops this sessiondaemon.
> On my system (LFS/BLFS6.1 www.linuxfromscratch.org ) everything works fine.
>
> Any comments?
If you have to cook up your bash scripts to import the environment
variables, why not just start dbus from this script? I don't see the
point of involving pam at all.
> Stef Bon
Regards,
Rob
More information about the dbus
mailing list