levenson / hunchentoot-daemon Goto Github PK
View Code? Open in Web Editor NEWThis project forked from l0stman/hunchentoot-daemon
Startup scripts for hunchentoot on FreeBSD
This project forked from l0stman/hunchentoot-daemon
Startup scripts for hunchentoot on FreeBSD
These scripts launch hunchentoot as a daemon at startup under FreeBSD 7.2 using detachtty (http://www.cliki.net/detachtty). We could attach to the lisp process to launch a swank server for slime to connect to. First you need to create the user htoot which runs the hunchentoot web server. Its home directory is /var/lib/hunchentoot and it has no login shell. The files startup.lisp, core.lisp, htoot.conf and htootd should be placed in the directory /var/lib/hunchentoot and the file hunchentoot under /etc/rc.d. Make sure that the directory /var/lib/hunchentoot is readable and executable only by htoot and that this user owns all the files under this directory. * patch-src-attachtty.c: This patched version of attachtty allows to pass code to a detached lisp process and set timeouts (http://common-lisp.net/project/bese/repos/detachtty). If you install detachtty using the ports collection, you just need to place this file in the directory /usr/ports/misc/detachtty/files. * core.lisp: Creates a custom core file for sbcl to speed up the launch of the web server and the swank server. * startup.lisp: Contains the procedures that launch hunchentoot and a swank server. * htoot.conf: Contains the general configurations of the hunchentoot daemon on the system. * htootd: The hunchentoot daemon itself. Make sure that this file is executable only by htoot. It could take 5 kind of arguments: - start: to start the hunchentoot web server. - swank: to start a swank server so we could connect to the server with slime using: emacs --eval '(slime-connect "127.0.0.1" 4005)' at the command line or 'M-x slime-connect RET RET' within emacs. Use slime-disconnect when you're done and the swank server would shut down itself leaving hunchentoot running. - attach: to attach to the detached lisp process running hunchentoot. - log: to see the latest entries in the log file. - stop: stop hunchentoot and do some cleanup. * hunchentoot: rc script for the hunchentoot daemon htootd. It runs hunchentoot as the user htoot and not as root. You could add the entry hunchentoot_enable="YES" in /etc/rc.conf to launch hunchentoot automatically at startup. To create a swank server you could execute the command: > sudo /etc/rc.d/hunchentoot swank or > sudo /etc/rc.d/hunchentoot stop to stop it. * install.sh: Create the user and group for Hunchentoot and install the different scripts.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.