Skip to content

Commit

Permalink
[doc] /etc/default/<normalizedName> is a shell script (cf #473)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhardy92 committed Jan 29, 2015
1 parent 88c7c42 commit 352ccb3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/sphinx/archetypes/java_server/customize.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Create ``src/templates/etc-default`` with the following template
# ${{daemon_user}} daemon user
# -------------------------------------------------
# Using $JAVA_OPTS envars
# Setting -Xmx and -Xms in Megabyte
# -mem 1024
Expand All @@ -58,9 +59,16 @@ Create ``src/templates/etc-default`` with the following template
# using a reserved parameter. See #184
# -d -- -d
# Example:
# JAVA_OPTS=" -Dpidfile.path=/var/run/${{app_name}}/play.pid $JAVA_OPTS"
# JAVA_OPTS=" -mem 1024 -Dkey=val -jvm-debug $JAVA_OPTS"
The file will be installed to ``/etc/default/<normalizedName>`` and read from there
by the startscript.

*Beware the format changed from java option list only to shell script setting Environment Variables
Project using previous version would adapt their configuration file.*

Environment variables
~~~~~~~~~~~~~~~~~~~~~

Expand Down

0 comments on commit 352ccb3

Please sign in to comment.