If you built Structr from the sources and start it from the main directory, the following start/stop scripts are available:

start [name] [heapsize]

Start the Structr instance.

Takes two optional parameters to set the JVM heap size (in GB) and a name.

The start script is a wrapper around the run.sh script (see below) to set the environment variables for name, heap size, base directory and the path of the run script.

stop [name]

Stop the currently running Structr instance.

Takes an optional parameter to stop the instance started with the given name.

The stop script looks for a pid file to get the process id of the Structr instance.

It monitors the log file and will return successfully once "Shutdown complete" is detected in the log.

run.sh [name] [heapsize]

Run the Structr JVM process.

Takes two optional parameters to set the JVM heap size (in GB) and a name.

The run.sh script sets the neccessary environment variables for name, heap size, pathes of the run script, logfile, pidfile and config file and starts a new JVM process with Structr's main server class.

It monitors the log file and will return successfully once "Initialization complete" is detected in the log.

The JVM process is run in the background using nohup.

Graph-Browser

About this article
Last change 2017-05-04
Topics Structr 2.0