Open ucy74 opened 8 years ago
Nice idea, though there is probably a more elegnat solution to shutdown japser. Perhaps doing sys.exit(0) would work, and seems more appropriate
Belive me, I was testing all elegant python exits :-) In generall, they exit only curent module script. Only this one above works for me for whole jasper exit.
perhaps there should be a shutdown path added into the main jasper client. This would then give plugins a chance to save information in the shutdown sequence, if they need it, by making their own self.shutdown() method of some sort.
is this something that would work for what you are thinking about?
This shuts jasper down:
I was creating module named Shutdown.py based on Life.py I was adding words down, shut and shutdown to _keywordphrases file and running boot.sh script at the end. File location: ~/jasper/client/modules/Shutdown.py