Gentoo Archives: gentoo-user

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

Attachments

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

Replies

Subject Author
Re: [gentoo-user] Recommended way to shut down akonadi "J. Roeleveld" <joost@××××××××.org>