Re: How to restart akonadi from cron?

Kevin Krammer <[email protected]>
Newsgroups gmane.comp.kde.users.pim
Organization KDE
Message-ID <2417096.OV1AzBufpJ@persephone>
Hi Thomas,

On Thursday, 2013-11-14, 11:25:25, ITSEF Admin wrote:

> Apparently, there is something subtle missing when trying to (re-)start
> akonadi from cron - but so far, I have no idea what. Google only mentioned
> the d-bus stuff.
> 
> Hence, if anybody out there has an idea, please let me know - thanks!

One idea I had: what if you only use the cron task as a trigger source but 
execute the restart inside the user session?

You would have one script that is started as part of the session, e.g. through 
the autostart facility.

It would have a loop that blocks on two points: first on whatever cron does to 
trigger stop and second on whatevr cron dies to trigger start.

I assume suitable blocking wait could be done with inotifywait, e.g. waiting 
for a file to be created and then either waiting for another file or waiting 
for the removal.

The cronjob would create/delete those "trigger indicator" files.

Or maybe there is something like cron that runs as part of a user session?

Cheers,
Kevin
-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring

_______________________________________________
KDE PIM users mailing list
Subscription management: https://mail.kde.org/mailman/listinfo/kdepim-users
signature.asc (application/pgp-signature, 190 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iD8DBQBShOM8nKMhG6pzZJIRAjIFAJ9S76CTbrB8MDttWAwK2NEVzmq1zACeOWjl
iKdm27w3PTVYj+aUBCLZV34=
=jnz7
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.