Gentoo Archives: gentoo-user

From: "J. Roeleveld" <joost@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Recommended way to shut down akonadi
Date: Tue, 07 Jun 2016 08:13:47
Message-Id: 1527707.PoHdVoyLOS@andromeda
In Reply to: Re: [gentoo-user] Recommended way to shut down akonadi by Mick
1 On Monday, June 06, 2016 07:22:09 PM Mick wrote:
2 > On Monday 06 Jun 2016 03:25:42 J. Roeleveld wrote:
3 > > On June 6, 2016 12:13:16 AM GMT+02:00, Mick <michaelkintzios@×××××.com>
4 >
5 > wrote:
6 > > >I run enlightenment DE with a few KDE apps, including KDEPIM and with
7 > > >the
8 > > >arrival of Plasma5 I have migrated most of my systems to this set up.
9 > > >
10 > > >On my laptop I run a stand-alone postgresql for KDEPIM's akonadi,
11 > > >instead of
12 > > >mysql. Everything was working fine, until a week ago. Shutdown now
13 > > >takes a
14 > > >while with akonadi apparently trying to restart, before it eventually
15 > > >gives
16 > > >up. This can take up to 90 seconds. The delay goes away if I close
17 > > >Kmail and
18 > > >run 'akonadictl stop' in a terminal, before I shutdown from the GUI,
19 > > >but not
20 > > >if I just add it in my .xsession. Perhaps my syntax is wrong, or there
21 > > >may be
22 > > >a better way to achieve the same. The contents of my .xsession are:
23 > > >
24 > > >===================================
25 > > >#!/bin/sh
26 > > >if [ -x /usr/bin/gpg-agent ]; then
27 > > >
28 > > > kill $(ps ux | awk '/gpg-agent/ && !/awk/ {print $2}') >/dev/null 2>&1
29 > > >
30 > > >fi
31 > > >
32 > > >if [ -x /usr/bin/gpg-agent ]; then
33 > > >
34 > > > eval "$(/usr/bin/gpg-agent --daemon)"
35 > > >
36 > > >fi
37 > > >
38 > > ># Uncomment the following lines to start rxvt-unicode which has the
39 > > >ability to
40 > > ># run multiple terminals in one single process, thus starting up faster
41 > > >and
42 > > ># saving resources.
43 > > ># The --opendisplay ensures that the daemon quits when the X server
44 > > >terminates,
45 > > ># therefore we don't need matching lines in agent-shutdown.sh.
46 > > >
47 > > >if [ -x /usr/bin/urxvtd ]; then
48 > > >
49 > > > /usr/bin/urxvtd --opendisplay --fork --quiet
50 > > >
51 > > >fi
52 > > >
53 > > >#exec ck-launch-session /usr/bin/enlightenment_start
54 > > >exec /usr/bin/enlightenment_start
55 > > >/usr/bin/akonadictl stop
56 > > >wait 4
57 > > >========================
58 >
59 > [snip ...]
60 >
61 > > >Is there something I need to correct in my .xsession syntax?
62 > >
63 > > Running KDE, I don't see this behaviour.
64 >
65 > Well I didn't see this behaviour on this box with the above .xsession file
66 > up until a week ago. I expect that when KDE shuts down it takes care of
67 > all its 'children' and none are left behind running amok. ;-)
68 >
69 > > I think you want to kill the 'kde session' that is started by the kde
70 > > application(s) during the shutdown process. I'm not certain which process
71 > > to look for, I'll have a look later when I'm with my desktop.
72 > >
73 > > Alternatively, kill all programs actually using akonadi. Like kmail and
74 > > all
75 > > the systray apps from the kdepim set.
76 >
77 > I do not have KDEPIM systray enabled and I shutdown Kmail before I shutdown
78 > the PC.
79 >
80 > These are the relevant processes I see:
81 >
82 > 29961 ? SNl 0:09 kmail -caption KMail
83 > 29968 ? SNl 0:00 /usr/bin/akonadi_control
84 > 29970 ? SNl 0:08 \_ akonadiserver
85 > 29998 ? SNl 0:00 \_ /usr/bin/akonadi_agent_launcher
86 > akonadi_akonotes_resource akonadi_akonotes_resource_0
87 > 29999 ? SN 0:00 \_ /usr/bin/akonadi_archivemail_agent
88 > --identifier akonadi_archivemail_agent
89 > 30000 ? SN 0:02 \_ /usr/bin/akonadi_baloo_indexer --identifier
90 > akonadi_baloo_indexer
91 > 30001 ? SNl 0:00 \_ /usr/bin/akonadi_agent_launcher
92 > akonadi_contacts_resource akonadi_contacts_resource_1
93 > 30002 ? SN 0:00 \_ /usr/bin/akonadi_followupreminder_agent --
94 > identifier akonadi_followupreminder_agent
95 > 30007 ? SNl 0:00 \_ /usr/bin/akonadi_imap_resource --identifier
96 > akonadi_imap_resource_0
97 > 30008 ? SNl 0:02 \_ /usr/bin/akonadi_imap_resource --identifier
98 > akonadi_imap_resource_1
99 > 30009 ? SNl 0:00 \_ /usr/bin/akonadi_agent_launcher
100 > akonadi_maildir_resource akonadi_maildir_resource_0
101 > 30010 ? SN 0:00 \_ /usr/bin/akonadi_maildispatcher_agent --
102 > identifier akonadi_maildispatcher_agent
103 > 30013 ? SN 0:00 \_ /usr/bin/akonadi_mailfilter_agent
104 > --identifier akonadi_mailfilter_agent
105 > 30014 ? SN 0:00 \_ /usr/bin/akonadi_migration_agent --identifier
106 > akonadi_migration_agent
107 > 30015 ? SN 0:00 \_ /usr/bin/akonadi_newmailnotifier_agent --
108 > identifier akonadi_newmailnotifier_agent
109 > 30016 ? SN 0:00 \_ /usr/bin/akonadi_sendlater_agent --identifier
110 > akonadi_sendlater_agent
111 > 30023 ? SNl 0:00 \_ /usr/bin/akonadi_agent_launcher
112 > akonadi_vcard_resource akonadi_vcard_resource_1

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Recommended way to shut down akonadi Mick <michaelkintzios@×××××.com>