appimage-packages / kmail

KDE Kmail Appimage
https://s3-eu-central-1.amazonaws.com/ds9-apps/kmail-master-appimage/kmail-git20170302-x86_64.AppImage
2 stars 0 forks source link

Leftover processes after quitting KMail #11

Closed probonopd closed 7 years ago

probonopd commented 7 years ago

Need to kill all of those...

16334 ?        Ssl    0:02 /home/me/Downloads/kmail-git20170218-23_00_58-x86_64.AppImage
16350 ?        Sl     0:00 /tmp/.mount_CD1Fst/usr/bin/akonadi_control
16358 ?        Sl     0:00 akonadiserver
16361 ?        Sl     0:00 /tmp/.mount_CD1Fst/usr/sbin//mysqld --defaults-file=/home/me/.local/share/akonadi/mysql.conf --datadir=/home/me/.local/share/akonadi/db_d
16427 ?        Sl     0:00 /tmp/.mount_CD1Fst/usr/bin//akonadi_maildispatcher_agent --identifier akonadi_maildispatcher_agent
16429 ?        Sl     0:00 /tmp/.mount_CD1Fst/usr/bin//akonadi_mailfilter_agent --identifier akonadi_mailfilter_agent
16430 ?        Sl     0:00 /tmp/.mount_CD1Fst/usr/bin//akonadi_newmailnotifier_agent --identifier akonadi_newmailnotifier_agent
16431 ?        SNl    0:00 /tmp/.mount_CD1Fst/usr/bin//akonadi_indexing_agent --identifier akonadi_indexing_agent
16432 ?        Sl     0:00 /tmp/.mount_CD1Fst/usr/bin//akonadi_archivemail_agent --identifier akonadi_archivemail_agent
16433 ?        Sl     0:00 /tmp/.mount_CD1Fst/usr/bin//akonadi_followupreminder_agent --identifier akonadi_followupreminder_agent
16435 ?        Sl     0:00 /tmp/.mount_CD1Fst/usr/bin//akonadi_migration_agent --identifier akonadi_migration_agent
16436 ?        Sl     0:00 /tmp/.mount_CD1Fst/usr/bin//akonadi_sendlater_agent --identifier akonadi_sendlater_agent
16445 ?        Sl     0:00 /tmp/.mount_CD1Fst/usr/bin//akonadi_birthdays_resource --identifier akonadi_birthdays_resource
16482 ?        Sl     0:00 /tmp/.mount_CD1Fst/usr/bin//akonadi_maildir_resource --identifier akonadi_maildir_resource_0
16516 ?        Sl     0:00 /tmp/.mount_CD1Fst/usr/bin//akonadi_contacts_resource --identifier akonadi_contacts_resource_0
16568 ?        Sl     0:00 /tmp/.mount_CD1Fst/usr/bin//akonadi_ical_resource --identifier akonadi_ical_resource_0
16579 ?        Sl     0:00 /tmp/.mount_CD1Fst/usr/bin//akonadi_akonotes_resource --identifier akonadi_akonotes_resource_0
16595 ?        S      0:00 [kworker/0:0]

Otherwise the AppImage does not unmount.

The AppRun script could kill those.

ScarlettGatelyMoore commented 7 years ago

Umm how?!

ScarlettGatelyMoore commented 7 years ago

also keep in mind akonadi needs to run in the background to continuously check for email etc. Not sure how to solve this really.

probonopd commented 7 years ago

In the AppRun bash script, after executing KMail (which blocks during execution), kill all child processes of the AppRun bash script. Once the AppImage is closed (unmounted) of course no more mail checking in the background is going on, just like one would expect.

ScarlettGatelyMoore commented 7 years ago

Sorry, not sure I know how to accomplish killing all child processes. Hints?

ScarlettGatelyMoore commented 7 years ago

I think I can try something like this.. https://coderwall.com/p/q-ovnw/killing-all-child-processes-in-a-shell-script

ScarlettGatelyMoore commented 7 years ago

I think sorting out https://github.com/appimage-packages/kmail/issues/10 will fix this issue. ( we will create an akonadi instance for the kmail launch which we can then easily stop and not touch any host akonadi instances. )

ScarlettGatelyMoore commented 7 years ago

Fixed