What is best practice to perform a clean shutdown of a Wakanda server via OS X shell scripting?
This would be with a solution currently loaded and operating.
I've had the same experience as Michael Hong. I would not use kill -9 to shut down a Wakanda server. It does not gracefully shut down workers and can lead to data corruption. The correct way to shut down a Wakanda server is using the solution.quitServer() function as documented here: http://doc.wakanda.org/home2.en.html#/Global-Application/Solution/quitServer.301-635546.en.html
My solution has been to have one shared worker that manages all other workers (a "worker manager"). An RPC/REST call can be made to call the "worker manager" to quit the server. The worker manager then calls all the other workers to give them time to gracefully close. Then after X seconds the worker manager calls solution.quitServer().