linuxscript.rst 970 B

12345678910111213141516171819202122232425262728293031323334353637
  1. .. _production_linuxscript:
  2. Linux init scripts
  3. ==================
  4. You will have to adjust the scripts to your environment. Download a script, rename it to :file:`geoserver` and move it to :file:`/etc/init.d`. Use :command:`chmod` to make the script executable and test with :command:`/etc/init.d/geoserver`.
  5. To set different values for environment variables, create a file :file:`/etc/default/geoserver` and specify your environment.
  6. Example settings in :file:`/etc/default/geoserver` for your environment::
  7. USER=geoserver
  8. GEOSERVER_DATA_DIR=/home/$USER/data_dir
  9. GEOSERVER_HOME=/home/$USER/geoserver
  10. JAVA_HOME=/usr/lib/jvm/java-6-sun
  11. JAVA_OPTS="-Xms128m -Xmx512m"
  12. Debian/Ubuntu
  13. -------------
  14. :download:`Download the init script <scripts/geoserver_deb>`
  15. Suse
  16. ----
  17. :download:`Download the init script <scripts/geoserver_suse>`
  18. Starting GeoServer in Tomcat
  19. ----------------------------
  20. :download:`Download the init script <scripts/geoserver_tomcat>`