This content has been marked as final. Show 6 replies
use a script:
Thank you for your reply. The point is that I am a developer, not a system administrator, so I do not control the way InDesign server is started/stopped. As for me, Ctrl-C serves well too.
Do you mean that some kind of recommendations on how to start/stop InDesign Server are needed for system administrators? E.g. if system hardware needs to be rebooted, InDesign Server has to be stopped manually first?
to my knowledge for indesign server to be stopped gracefully needs the app.quit method be sent trough a script.
So the system administrators that provided a way to start the instance should provide a method for stopping the same instance in a gracefully way.
If you don't quit the application but you just kill it, temporary files will not be cleaned and depending on the state of the application you may result in having saved data and / or defaults data corrupted that can lead to various crashes the next time the instance is run.
You can always kill the instance and clean all the saved data and preferences but I still prefere the clean way.
Cntl-C, Closing the command window, and sending the app.quit() script are all safe ways to shutdown InDesign Server. I'm not sure which temporary files you are seeing that are not getting cleaned up. Perhaps you could list a few of them.
InDesign Server is fairly robust even when it comes to just killing the process. You should not have to worry about corrupted default file etc. We start from scratch with these files everytime the server is launched.
I haven't seen corrupted files. The original question was about cleanup routines rather than possible crashes, so the problem is perhaps not all that important...
The files that remain undeleted are InDesign Server temporary files, they are located in the temporary folder (check %TEMP% environment variable) and their names start with "DBTmp".
What's more, Startup/Shutdown services implemented in InDesign Server plug-ins seem to be ignored.
We'll look into getting a clean shutdown when closing the command shell of a running InDesignServer process. A clean shutdown should cleanup temporary files and call Startup/Shutdown services.