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 >======================== > >The above causes a number of recurring entries in .xsession-errors as >per the >attached log file. Some of the errors look like this: > >rocessControl: Application '/usr/bin/akonadi_maildispatcher_agent' >returned >with exit code 1 (Unknown error) >akonadi_agent_launcher: cannot connect to X server :0.0 >ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned >with >exit code 1 (Unknown error) >ProcessControl: Application '/usr/bin/akonadi_migration_agent' returned >with >exit code 1 (Unknown error) >akonadi_agent_launcher: cannot connect to X server :0.0 >akonadi_newmailnotifier_agent: cannot connect to X server :0.0 > >*after* akonadi has already reported: > >Application 'akonadiserver' exited normally... > > >So if it has exited normally, why are all these processes left hanging >and >keeping postgresql mulling it over for 90 seconds or so, before it >eventually >gives up? If I press Ctrl+Alt+Backspace while sitting there waiting on >a >black VT7 the shutdown process picks up without further delay. > >Is there something I need to correct in my .xsession syntax?
Running KDE, I don't see this behaviour. 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. -- Joost -- Sent from my Android device with K-9 Mail. Please excuse my brevity.

