Thanks for the source code pointer, but there is no "API" documentation there, so you should give the exact "API call" you want the script to run. I assume it is something more complex than `(sudo) akonadi stop`.
- Bug#1032240: akonadi server fails to start since it ... Paul Gevers
- Bug#1032240: akonadi server fails to start sinc... Otto Kekäläinen
- Bug#1032240: akonadi server fails to start ... Sune Stolborg Vuorela
- Bug#1032240: akonadi server fails to st... Otto Kekäläinen
- Bug#1032240: akonadi server fails t... Sune Stolborg Vuorela
- Bug#1032240: akonadi server fa... Otto Kekäläinen
- Bug#1032240: akonadi serve... Patrick Franz
- Bug#1032240: akonadi s... Otto Kekäläinen