All Manuals > LispWorks Release Notes and Installation Guide > 10 Configuration on Linux, x86/x64 Solaris & FreeBSD > 10.4 Saving and testing the configured image


10.4.2 Create and use a save-image script

  1. Create a configuration and saving script /tmp/save-config.lisp , containing:
  2. (load-all-patches)
    (load "/tmp/my-configuration.lisp")
    (save-image "my-lispworks")
  3. Change directory to the LispWorks installation directory, for example:
  4. % cd /usr/local/lib/LispWorks
  5. Start the supplied image using the configuration script as the build file. For example:
% lispworks-6-1-0-x86-linux -build /tmp/save-config.lisp

If the image will not run at this stage, it is probably not finding a valid key.

Saving the image takes some time.

You can now use the new my-lispworks image by starting it just as you did the supplied image. The supplied image is not required after the configuration process has been successfully completed.

Do not try to save a new image over an image that is currently running. Instead, save an image under a unique name, and then, if necessary, replace the new image with the old one after the call to save-image has returned.

LispWorks Release Notes and Installation Guide - 23 Dec 2011