On Monday, June 06, 2016 07:22:09 PM Mick wrote: > On Monday 06 Jun 2016 03:25:42 J. Roeleveld wrote: > > On June 6, 2016 12:13:16 AM GMT+02:00, Mick <[email protected]> > > wrote: > > >I run enlightenment DE with a few KDE apps, including KDEPIM and with > > >the > > >arrival of Plasma5 I have migrated most of my systems to this set up. > > > > > >On my laptop I run a stand-alone postgresql for KDEPIM's akonadi, > > >instead of > > >mysql. Everything was working fine, until a week ago. Shutdown now > > >takes a > > >while with akonadi apparently trying to restart, before it eventually > > >gives > > >up. This can take up to 90 seconds. The delay goes away if I close > > >Kmail and > > >run 'akonadictl stop' in a terminal, before I shutdown from the GUI, > > >but not > > >if I just add it in my .xsession. Perhaps my syntax is wrong, or there > > >may be > > >a better way to achieve the same. The contents of my .xsession are: > > > > > >==================================> > >#!/bin/sh > > >if [ -x /usr/bin/gpg-agent ]; then > > > > > > kill $(ps ux | awk '/gpg-agent/ && !/awk/ {print $2}') >/dev/null 2>&1 > > > > > >fi > > > > > >if [ -x /usr/bin/gpg-agent ]; then > > > > > > eval "$(/usr/bin/gpg-agent --daemon)" > > > > > >fi > > > > > ># Uncomment the following lines to start rxvt-unicode which has the > > >ability to > > ># run multiple terminals in one single process, thus starting up faster > > >and > > ># saving resources. > > ># The --opendisplay ensures that the daemon quits when the X server > > >terminates, > > ># therefore we don't need matching lines in agent-shutdown.sh. > > > > > >if [ -x /usr/bin/urxvtd ]; then > > > > > > /usr/bin/urxvtd --opendisplay --fork --quiet > > > > > >fi > > > > > >#exec ck-launch-session /usr/bin/enlightenment_start > > >exec /usr/bin/enlightenment_start > > >/usr/bin/akonadictl stop > > >wait 4 > > >=======================> > [snip ...] > > > >Is there something I need to correct in my .xsession syntax? > > > > Running KDE, I don't see this behaviour. > > Well I didn't see this behaviour on this box with the above .xsession file > up until a week ago. I expect that when KDE shuts down it takes care of > all its 'children' and none are left behind running amok. ;-) > > > I think you want to kill the 'kde session' that is started by the kde > > application(s) during the shutdown process. I'm not certain which process > > to look for, I'll have a look later when I'm with my desktop. > > > > Alternatively, kill all programs actually using akonadi. Like kmail and > > all > > the systray apps from the kdepim set. > > I do not have KDEPIM systray enabled and I shutdown Kmail before I shutdown > the PC. > > These are the relevant processes I see: > > 29961 ? SNl 0:09 kmail -caption KMail > 29968 ? SNl 0:00 /usr/bin/akonadi_control > 29970 ? SNl 0:08 \_ akonadiserver > 29998 ? SNl 0:00 \_ /usr/bin/akonadi_agent_launcher > akonadi_akonotes_resource akonadi_akonotes_resource_0 > 29999 ? SN 0:00 \_ /usr/bin/akonadi_archivemail_agent > --identifier akonadi_archivemail_agent > 30000 ? SN 0:02 \_ /usr/bin/akonadi_baloo_indexer --identifier > akonadi_baloo_indexer > 30001 ? SNl 0:00 \_ /usr/bin/akonadi_agent_launcher > akonadi_contacts_resource akonadi_contacts_resource_1 > 30002 ? SN 0:00 \_ /usr/bin/akonadi_followupreminder_agent -- > identifier akonadi_followupreminder_agent > 30007 ? SNl 0:00 \_ /usr/bin/akonadi_imap_resource --identifier > akonadi_imap_resource_0 > 30008 ? SNl 0:02 \_ /usr/bin/akonadi_imap_resource --identifier > akonadi_imap_resource_1 > 30009 ? SNl 0:00 \_ /usr/bin/akonadi_agent_launcher > akonadi_maildir_resource akonadi_maildir_resource_0 > 30010 ? SN 0:00 \_ /usr/bin/akonadi_maildispatcher_agent -- > identifier akonadi_maildispatcher_agent > 30013 ? SN 0:00 \_ /usr/bin/akonadi_mailfilter_agent > --identifier akonadi_mailfilter_agent > 30014 ? SN 0:00 \_ /usr/bin/akonadi_migration_agent --identifier > akonadi_migration_agent > 30015 ? SN 0:00 \_ /usr/bin/akonadi_newmailnotifier_agent -- > identifier akonadi_newmailnotifier_agent > 30016 ? SN 0:00 \_ /usr/bin/akonadi_sendlater_agent --identifier > akonadi_sendlater_agent > 30023 ? SNl 0:00 \_ /usr/bin/akonadi_agent_launcher > akonadi_vcard_resource akonadi_vcard_resource_1
signature.asc
Description: This is a digitally signed message part.

