From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 50B1613829C for ; Mon, 6 Jun 2016 03:25:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 51B90254035; Mon, 6 Jun 2016 03:25:47 +0000 (UTC) Received: from gw2.antarean.org (gw2.antarean.org [141.105.125.208]) by pigeon.gentoo.org (Postfix) with ESMTP id D3FCB254020 for ; Mon, 6 Jun 2016 03:25:45 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by gw2.antarean.org (Postfix) with ESMTP id 98CC6122667 for ; Mon, 6 Jun 2016 03:24:46 +0000 () X-Virus-Scanned: amavisd-new at antarean.org Received: from gw2.antarean.org ([127.0.0.1]) by localhost (gw2.antarean.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HzieLaKA7LnZ for ; Mon, 6 Jun 2016 03:24:45 +0000 (%Z) Received: from data.antarean.org (localhost [127.0.0.1]) by gw2.antarean.org (Postfix) with ESMTP id CA870121755 for ; Mon, 6 Jun 2016 03:24:45 +0000 () Received: from nl019.gst.antarean.org (nl019.gst.antarean.org [192.168.45.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by data.antarean.org (Postfix) with ESMTPSA id 58EB64C for ; Mon, 6 Jun 2016 05:25:10 +0200 (CEST) In-Reply-To: <7081971.LXnDv28ARm@dell_xps> References: <7081971.LXnDv28ARm@dell_xps> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Subject: Re: [gentoo-user] Recommended way to shut down akonadi From: "J. Roeleveld" Date: Mon, 06 Jun 2016 03:25:42 +0000 To: gentoo-user@lists.gentoo.org Message-ID: X-Archives-Salt: 1ba52d60-3541-4edd-99ec-a2ab02386559 X-Archives-Hash: 935e9e54e1a60d8cdf868e578a2a77c3 On June 6, 2016 12:13:16 AM GMT+02:00, Mick 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.