public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
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	[thread overview]
Message-ID: <8598600.aLmdYVC2JS@dell_xps> (raw)
In-Reply-To: <EE751802-BED8-4B69-8C23-30C1BF76CA68@antarean.org>

[-- Attachment #1: Type: text/plain, Size: 4906 bytes --]

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.com> 
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
> >========================
[snip ...]

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

Well I didn't see this behaviour on this box with the above .xsession file up 
until a week ago.  I expect that when KDE shuts down it takes care of all its 
'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 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.

I do not have KDEPIM systray enabled and I shutdown Kmail before I shutdown 
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 
akonadi_akonotes_resource akonadi_akonotes_resource_0
29999 ?        SN     0:00  \_ /usr/bin/akonadi_archivemail_agent --identifier 
akonadi_archivemail_agent
30000 ?        SN     0:02  \_ /usr/bin/akonadi_baloo_indexer --identifier 
akonadi_baloo_indexer
30001 ?        SNl    0:00  \_ /usr/bin/akonadi_agent_launcher 
akonadi_contacts_resource akonadi_contacts_resource_1
30002 ?        SN     0:00  \_ /usr/bin/akonadi_followupreminder_agent --
identifier akonadi_followupreminder_agent
30007 ?        SNl    0:00  \_ /usr/bin/akonadi_imap_resource --identifier 
akonadi_imap_resource_0
30008 ?        SNl    0:02  \_ /usr/bin/akonadi_imap_resource --identifier 
akonadi_imap_resource_1
30009 ?        SNl    0:00  \_ /usr/bin/akonadi_agent_launcher 
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 --identifier 
akonadi_mailfilter_agent
30014 ?        SN     0:00  \_ /usr/bin/akonadi_migration_agent --identifier 
akonadi_migration_agent
30015 ?        SN     0:00  \_ /usr/bin/akonadi_newmailnotifier_agent --
identifier akonadi_newmailnotifier_agent
30016 ?        SN     0:00  \_ /usr/bin/akonadi_sendlater_agent --identifier 
akonadi_sendlater_agent
30023 ?        SNl    0:00  \_ /usr/bin/akonadi_agent_launcher 
akonadi_vcard_resource akonadi_vcard_resource_1
30024 ?        SNl    0:00  \_ /usr/bin/akonadi_agent_launcher 
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 difference.  
Happy to try any suggestions/syntax you may have.

-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

  reply	other threads:[~2016-06-06 18:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-05 22:13 [gentoo-user] Recommended way to shut down akonadi Mick
2016-06-06  3:25 ` J. Roeleveld
2016-06-06 18:22   ` Mick [this message]
2016-06-07  8:13     ` J. Roeleveld
2016-06-10 16:05       ` Mick
2016-06-10 19:54         ` J. Roeleveld
2016-06-10 21:32           ` Mick
2016-06-14  5:03             ` J. Roeleveld
2016-06-18 16:45               ` Mick
2016-06-18 17:42                 ` J. Roeleveld
2016-06-18 19:47                   ` Mick

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8598600.aLmdYVC2JS@dell_xps \
    --to=michaelkintzios@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox