I see your point. Say, I wonder if its a documentation error - did you try specifying a lua filename string instead, like LrInitPlugin?
Yes, I tried it, but did not notice anything useful happening, not when I removed the plugin from plugin manager or when I quit Lightroom. I really wonder what the correct use of it is.
I think we need Chet Drarvik to straighten this out (Eric Scouten's replacement).
Today, while working on totally other features of my plugin, I noticed that the shutdown logging message was actually getting outputted when reloading the plugin! I have currently specified it as a script name in Info.lua
I don't know what caused it, but I am still unable to get it to work on simpler example, such as Hello World plugin in SDK. Additionally, it is not called when Lightroom exits, only when plugin is reloaded or unloaded, so it is not suitable for shutting down my server process.
I'm trying to get my plugin released next week, so I'm now just adding a idle timeout which will eventually kill the server process.
Thanks for the update. So for the shutdown, you specify a lua file (like for LrInitPlugin), not a function (like it says in the sdk3 guide document) - right? If so, I think a bug-report against the document is in order.
I'm looking forward to the release of your plugin...
PS - Have you tried my latest (DevAdjust)?