Re: How does beagle get stopped?



Hi,

On 10/17/07, Max Wiehle <max wiehle gmail com> wrote:
> I am currently working on beagle++ and for us it's quite crucial to shut
> down beagled cleanly and then shut down the rdf repository as well. I
> did write a shell script that does just that if beagle is terminated,
> shut down with beagle-shutdown or a TERM or INT signal is send to the
> script. However this does not seem to work when logging out of a gnome
> session or shutting down the computer.
> So how does this normally work. What stops beagle when i halt my system?

The beagle daemon tries to connect to the X server when it's started
and will start its shutdown process if the X connection is severed
(because the user logged out, for instance).

The code which does this is in beagled/BeagleDaemon.cs.  Look for
XssInit() and XIOErrorHandler.

Joe


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]