From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-user+bounces-171631-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id CAF9213829C
	for <garchives@archives.gentoo.org>; Mon,  6 Jun 2016 18:22:30 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 66E011438E;
	Mon,  6 Jun 2016 18:22:25 +0000 (UTC)
Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id EF0E214269
	for <gentoo-user@lists.gentoo.org>; Mon,  6 Jun 2016 18:22:23 +0000 (UTC)
Received: by mail-wm0-f48.google.com with SMTP id n184so104715331wmn.1
        for <gentoo-user@lists.gentoo.org>; Mon, 06 Jun 2016 11:22:23 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=from:to:reply-to:subject:date:message-id:user-agent:in-reply-to
         :references:mime-version;
        bh=2kWNU1kYChpj0heXUpZ99vK0V+fYaIlXRF/OvIINf/U=;
        b=o8w4w9ptU6KEID5uwCOH84R96Tb2Unb3+JOkOqr7HBFhvrqJjjOdzKHgi3+Pm9MaH9
         tbDUNY9OX92eB01UJE9yg/4DLtscnRuRaWW1Hh4Toa/7t8/6abc0HaJPa3BsOVQRhXt0
         pXJw5lLBamzHJkcm4yNf8bWdb0nGJxD5vNEvyF0ChS/W5kjcm10eAWCexcbdY9jETE3c
         VMNS+saUf1uN5ktIB84CE9IXhU0Km12QdBHScM4piq5xbaxFPL6q6OldzTKNzuuNbFzl
         c1zRycvuKmxX5UMtncFxwo14Omsszumce4bVR0DKBNSu+7OJnQUdrxaq+AAYA1IbLPPW
         IrOw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:from:to:reply-to:subject:date:message-id
         :user-agent:in-reply-to:references:mime-version;
        bh=2kWNU1kYChpj0heXUpZ99vK0V+fYaIlXRF/OvIINf/U=;
        b=dKHwjrN/kEBxmSPMBzFkxg56CKzxk7xnMIVmJyAeDqLIkFfbR2Oi2zPdJbi6r6j2Ev
         ASQlwj+hlY+jVZ9LoHF98/SUOsCDDoJ0Sz6+XgmLdxtmBi5p40gfjDeVMsXqjgYnL2O6
         wbagVwRzq7OQgP8HkmGT0ng0Lwib9e3jR20erZcCiYmHuTjZdJDIf+5nB9uaa64zG1Vm
         C2xh9BHxlLyni7tdnT/ieko5HgFQIAev/9VR2DE7GnwpsZHsA4x+cUCN0pJauO49+0IR
         6Fvfni9C5PLHvsHKmXk8E1PGVxEsUg6yUGMwV66rAZRhUoX5i6P9scfvdR4eJdpBhE4C
         cvig==
X-Gm-Message-State: ALyK8tKjyd4WusQpG7+DScjvpbTJ9N6ExjbUrpXTJS2YQKyQGoj8tQumK9JRtVYRuVrvQw==
X-Received: by 10.194.242.230 with SMTP id wt6mr18518469wjc.143.1465237342579;
        Mon, 06 Jun 2016 11:22:22 -0700 (PDT)
Received: from dell_xps.localnet (230.3.169.217.in-addr.arpa. [217.169.3.230])
        by smtp.gmail.com with ESMTPSA id g129sm24758321wme.1.2016.06.06.11.22.21
        for <gentoo-user@lists.gentoo.org>
        (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128);
        Mon, 06 Jun 2016 11:22:21 -0700 (PDT)
From: Mick <michaelkintzios@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Recommended way to shut down akonadi
Date: Mon, 06 Jun 2016 19:22:09 +0100
Message-ID: <8598600.aLmdYVC2JS@dell_xps>
User-Agent: KMail/4.14.10 (Linux/4.4.6-gentoo; KDE/4.14.16; x86_64; ; )
In-Reply-To: <EE751802-BED8-4B69-8C23-30C1BF76CA68@antarean.org>
References: <7081971.LXnDv28ARm@dell_xps> <EE751802-BED8-4B69-8C23-30C1BF76CA68@antarean.org>
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="nextPart2277257.JJAWUfySGT"; micalg="pgp-sha256"; protocol="application/pgp-signature"
X-Archives-Salt: b5f6dbf9-25fb-4966-8559-1fcce87828ea
X-Archives-Hash: 0df67ef64969e2451810a653065ed9a8

--nextPart2277257.JJAWUfySGT
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="us-ascii"

On Monday 06 Jun 2016 03:25:42 J. Roeleveld wrote:
> On June 6, 2016 12:13:16 AM GMT+02:00, Mick <michaelkintzios@gmail.co=
m>=20
wrote:
> >I run enlightenment DE with a few KDE apps, including KDEPIM and wit=
h
> >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 eventuall=
y
> >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 th=
ere
> >may be
> >a better way to achieve the same.  The contents of my .xsession are:=

> >
> >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> >#!/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 fas=
ter
> >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
> >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D
[snip ...]

> >Is there something I need to correct in my .xsession syntax?
>=20
> Running KDE, I don't see this behaviour.

Well I didn't see this behaviour on this box with the above .xsession f=
ile up=20
until a week ago.  I expect that when KDE shuts down it takes care of a=
ll its=20
'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 pro=
cess
> to look for, I'll have a look later when I'm with my desktop.
>=20
> Alternatively, kill all programs actually using akonadi. Like kmail a=
nd all
> the systray apps from the kdepim set.

I do not have KDEPIM systray enabled and I shutdown Kmail before I shut=
down=20
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=20
akonadi_akonotes_resource akonadi_akonotes_resource_0
29999 ?        SN     0:00  \_ /usr/bin/akonadi_archivemail_agent --ide=
ntifier=20
akonadi_archivemail_agent
30000 ?        SN     0:02  \_ /usr/bin/akonadi_baloo_indexer --identif=
ier=20
akonadi_baloo_indexer
30001 ?        SNl    0:00  \_ /usr/bin/akonadi_agent_launcher=20
akonadi_contacts_resource akonadi_contacts_resource_1
30002 ?        SN     0:00  \_ /usr/bin/akonadi_followupreminder_agent =
=2D-
identifier akonadi_followupreminder_agent
30007 ?        SNl    0:00  \_ /usr/bin/akonadi_imap_resource --identif=
ier=20
akonadi_imap_resource_0
30008 ?        SNl    0:02  \_ /usr/bin/akonadi_imap_resource --identif=
ier=20
akonadi_imap_resource_1
30009 ?        SNl    0:00  \_ /usr/bin/akonadi_agent_launcher=20
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 --iden=
tifier=20
akonadi_mailfilter_agent
30014 ?        SN     0:00  \_ /usr/bin/akonadi_migration_agent --ident=
ifier=20
akonadi_migration_agent
30015 ?        SN     0:00  \_ /usr/bin/akonadi_newmailnotifier_agent -=
=2D
identifier akonadi_newmailnotifier_agent
30016 ?        SN     0:00  \_ /usr/bin/akonadi_sendlater_agent --ident=
ifier=20
akonadi_sendlater_agent
30023 ?        SNl    0:00  \_ /usr/bin/akonadi_agent_launcher=20
akonadi_vcard_resource akonadi_vcard_resource_1
30024 ?        SNl    0:00  \_ /usr/bin/akonadi_agent_launcher=20
akonadi_vcard_resource akonadi_vcard_resource_2
29974 ?        SNs    0:00 kdeinit4: kdeinit4 Runnin e
29976 ?        SN     0:00  \_ kdeinit4: klauncher [kdei e
29979 ?        SN     0:00 kdeinit4: kded4 [kdeinit]
29997 ?        SNL    0:00 kdeinit4: kwalletd [kdein e
30101 ?        SNl    0:00 /usr/bin/knotify4

after I login and start Kmail.

I did try 'killall kdeinit4' but from what I recall it made no differen=
ce. =20
Happy to try any suggestions/syntax you may have.

=2D-=20
Regards,
Mick
--nextPart2277257.JJAWUfySGT
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part.
Content-Transfer-Encoding: 7Bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAABCAAGBQJXVb9cAAoJELAdA+zwE4Ye2PIIANCusUH6aqPeOF/jRA/RdZEN
8Ok35cTtUfEIV6biabrqLs30TuwJ1IxcE6APi9Z6Cqlw0g2A8edYc4hdMGAod2md
GZZrO3S0tvwEYv9/xY6vurHH4gZrqVSsJCP1I1L8lngidBoG1ZOL0iSabyVF0g68
9WHHY9N2lzmRxx/bDn8UWsPvbPlrpsC1NXlQkNY5k8Utow1UX8zO3ss6SAeuNgFa
9S7HbVsta+ga8pVCz3MrGuHUFl+x8O9Dffr2mSPpB8hsJ0sZq+jwBlho38MxnLTN
wNJYJrFXL1rrUVyVg04b+7YDRdN9D5jrZHStUHHSnzUxAJ6ZTVGJgRWQyxTYu/0=
=PTOS
-----END PGP SIGNATURE-----

--nextPart2277257.JJAWUfySGT--