Skip to content

Instantly share code, notes, and snippets.

@johnjohndoe
Last active Aug 29, 2015
Embed
What would you like to do?
Upstart configuration for GeoServer
# GeoServer
# /etc/init/geoserver.conf
description "GeoServer upstart configuration"
# Stanzas
# When to start the service
start on runlevel [2345]
# When to stop the service
stop on runlevel [016]
# Automatically restart process if crashed
respawn
# Current Working Dir
chdir /home/geoserver/geoserver/
# Set environment variables
env JAVA_HOME=/usr/lib/jvm/java-7-oracle
env GEOSERVER_HOME=/home/geoserver/geoserver
env JAVA_OPTS="-XX:MaxPermSize=256m -Xmx2048m"
# Run as geosserver user
setuid geoserver
setgid nogroup
# Run before process
pre-start script
end script
# Start command
script
exec /home/geoserver/geoserver/bin/startup.sh
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment