Running as a Unix daemon
The archivesspace.sh
startup script doubles as an init script. If
you run:
ArchivesSpace will run in the background as a daemon (logging to
logs/archivesspace.out
by default, as before). You can shut it down with:
You can even install it as a system-wide init script by creating a symbolic link:
Note: By default ArchivesSpace will overwrite the log file when restarted. You
can change that by modifying archivesspace.sh
and changing the $startup_cmd
to include double greater than signs:
Then use the appropriate tool for your distribution to set up the
run-level symbolic links (such as chkconfig
for RedHat or
update-rc.d
for Debian-based distributions).
Note that you may want to edit archivesspace.sh to set the account that the system runs under, JVM options, and so on.
For systems that use systemd you may wish to use a Systemd unit file for ArchivesSpace
Something similar to this should work: