Various OS flavors will have different ways of doing this, so here's a collection point for scripts you might use in those environments.
Gentoo Linux and derivatives
Gentoo-handle_initscript.mht works for me as
/etc/init.d/handle for startup, but
stop isn't working yet. This needs a companion
HANDLE_HOME to point to the DSpace installation directory.
Ubuntu 8.04 and 10.04 methods
Edit the file
and the line
. This is assuming of course that your DSpace home is:
See: http://wiki.lib.sun.ac.za/index.php/SUNScholar/Handle_Server for more info.
RedHat RHEL and CentOS
dspace-handle.txt is an updated and slightly improved version of the init script posted by Gary Browne on May 10, 2012 on the dspace-tech mailing list. Be sure to remove the .txt extension and change the exec variable to point to your DSpace bin directory.