1 |
I run enlightenment DE with a few KDE apps, including KDEPIM and with the |
2 |
arrival of Plasma5 I have migrated most of my systems to this set up. |
3 |
|
4 |
On my laptop I run a stand-alone postgresql for KDEPIM's akonadi, instead of |
5 |
mysql. Everything was working fine, until a week ago. Shutdown now takes a |
6 |
while with akonadi apparently trying to restart, before it eventually gives |
7 |
up. This can take up to 90 seconds. The delay goes away if I close Kmail and |
8 |
run 'akonadictl stop' in a terminal, before I shutdown from the GUI, but not |
9 |
if I just add it in my .xsession. Perhaps my syntax is wrong, or there may be |
10 |
a better way to achieve the same. The contents of my .xsession are: |
11 |
|
12 |
=================================== |
13 |
#!/bin/sh |
14 |
if [ -x /usr/bin/gpg-agent ]; then |
15 |
kill $(ps ux | awk '/gpg-agent/ && !/awk/ {print $2}') >/dev/null 2>&1 |
16 |
fi |
17 |
|
18 |
if [ -x /usr/bin/gpg-agent ]; then |
19 |
eval "$(/usr/bin/gpg-agent --daemon)" |
20 |
fi |
21 |
|
22 |
# Uncomment the following lines to start rxvt-unicode which has the ability to |
23 |
# run multiple terminals in one single process, thus starting up faster and |
24 |
# saving resources. |
25 |
# The --opendisplay ensures that the daemon quits when the X server |
26 |
terminates, |
27 |
# therefore we don't need matching lines in agent-shutdown.sh. |
28 |
|
29 |
if [ -x /usr/bin/urxvtd ]; then |
30 |
/usr/bin/urxvtd --opendisplay --fork --quiet |
31 |
fi |
32 |
|
33 |
#exec ck-launch-session /usr/bin/enlightenment_start |
34 |
exec /usr/bin/enlightenment_start |
35 |
/usr/bin/akonadictl stop |
36 |
wait 4 |
37 |
======================== |
38 |
|
39 |
The above causes a number of recurring entries in .xsession-errors as per the |
40 |
attached log file. Some of the errors look like this: |
41 |
|
42 |
rocessControl: Application '/usr/bin/akonadi_maildispatcher_agent' returned |
43 |
with exit code 1 (Unknown error) |
44 |
akonadi_agent_launcher: cannot connect to X server :0.0 |
45 |
ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with |
46 |
exit code 1 (Unknown error) |
47 |
ProcessControl: Application '/usr/bin/akonadi_migration_agent' returned with |
48 |
exit code 1 (Unknown error) |
49 |
akonadi_agent_launcher: cannot connect to X server :0.0 |
50 |
akonadi_newmailnotifier_agent: cannot connect to X server :0.0 |
51 |
|
52 |
*after* akonadi has already reported: |
53 |
|
54 |
Application 'akonadiserver' exited normally... |
55 |
|
56 |
|
57 |
So if it has exited normally, why are all these processes left hanging and |
58 |
keeping postgresql mulling it over for 90 seconds or so, before it eventually |
59 |
gives up? If I press Ctrl+Alt+Backspace while sitting there waiting on a |
60 |
black VT7 the shutdown process picks up without further delay. |
61 |
|
62 |
Is there something I need to correct in my .xsession syntax? |
63 |
|
64 |
-- |
65 |
Regards, |
66 |
Mick |