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 /etc/conf.d/handle
defining DSPACE_HOME
and HANDLE_HOME
to point to the DSpace installation directory.
Ubuntu 8.04 and 10.04 methods
Edit the file
Code Block |
---|
/etc/rc.local |
and the line
Code Block |
---|
/home/dspace/bin/start-handle-server |
. This is assuming of course that your DSpace home is:
Code Block |
---|
/home/dspace |
.
See: http://wiki.lib.sun.ac.za/index.php/SUNScholar/Handle_Server for more info.
RedHat RHEL5 and CentOS
handle.lso works for me as /etc/init.d/handle
. Be sure to customize the script for your environment, setting the default values for TOMCAT_USER, DSPACE_DIR, JAVA_HOME, JRE_HOME.