Last active
August 29, 2015 14:16
-
-
Save johnjohndoe/bfb33279558bd83e8af2 to your computer and use it in GitHub Desktop.
Upstart configuration for GeoServer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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