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
File__Gentoo-handle.initscript 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.