th-server is a free, small and open-source server tool that allows you to integrate a Java app implementing the Runnable interface into a Unix environment.
th-server handles signals like SIGHUP and SIGTERM, logs to syslogd and can start multiple threads in a single JVM or fork multiple JVM's with one or more threads running in them.
Detailed instructions on how to install and use the th-server utility on your Mac are available HERE.
th-server is cross-platform and it works on Mac OS X, Solaris and Linux.
Requirements:
· Java