puts the fun newLISP button back in Lisp

Install newLISP server on macOS using launchd


Launchd is the program which starts demons and programs when macOS is rebooting. Put the following script in to the file: ~/Library/LaunchAgents/org.newlisp.newlisp.plist


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
       "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>Label</key>
  <string>org.newlisp.newlisp</string>
  <key>ProgramArguments</key>
    <array>
      <string>/usr/bin/newlisp</string>
      <string>-c</string>
      <string>-d4711</string>
      <string>-w/Users/lutz/Sites</string>
    </array>
  <key>RunAtLoad</key> 
  <true/>
</dict>
</plist>

Customize the port in -d4711 and the webserver root directory in -w/Users/lutz/Sites then reboot.

Your newLISP webservice is now available at http://localhost:4711/ or whatever portnumber you have chosen during setup. The server can also server net-eval requests.

After rebooting you can execute the following command in a terminal window to see if installation was sucessful:

launchctl list | grep newlisp

this will show the process id for the server process.