Skip to main content
Participant
October 25, 2006
Question

[IDSW]: Exiting InDesign Server

  • October 25, 2006
  • 6 replies
  • 2519 views
Hello Forum,

I'm a newbie in the InDesign Server world, and my question may be a very silly one.

I run ID Server from Windows console. If I exit it with Ctrl-C, my strartup/shutdown services get called. If I just close the console window, the shutdown service is not called. Has anybody come across the problem? Is there a "moral" and portable way to solve it?

I noticed that when I just close the console window, InDesign temporary files are not deleted from the temporary directory. Maybe this is just a bug in InDesign Server, or InDesign server is not supposed to quit normally in this case at all...

Thank you,
Pavel.
This topic has been closed for replies.

6 replies

Participating Frequently
November 7, 2006
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.
Participant
November 7, 2006
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.

Thank you,
Pavel.
Participating Frequently
November 6, 2006
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.
Participating Frequently
November 5, 2006
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.

Kindest Regards,

- mn
Participant
November 2, 2006
Marco,

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?

Thank you,
Pavel
Participating Frequently
October 29, 2006
use a script:

app.quit()