-
Notifications
You must be signed in to change notification settings - Fork 487
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merging with 3919-dataset-files #3921
- Loading branch information
Showing
41 changed files
with
628 additions
and
625 deletions.
There are no files selected for viewing
File renamed without changes.
34 changes: 34 additions & 0 deletions
34
doc/sphinx-guides/source/_static/installation/files/etc/init.d/glassfish.init.service
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#! /bin/sh | ||
# chkconfig: 2345 80 01 | ||
# description: GlassFish App Server | ||
set -e | ||
|
||
ASADMIN=/usr/local/glassfish4/bin/asadmin | ||
GF_USER=glassfish | ||
|
||
case "$1" in | ||
start) | ||
echo -n "Starting GlassFish server: glassfish" | ||
# Increase file descriptor limit: | ||
ulimit -n 32768 | ||
# Allow "memory overcommit": | ||
# (basically, this allows to run exec() calls from inside the | ||
# app, without the Unix fork() call physically hogging 2X | ||
# the amount of memory glassfish is already using) | ||
echo 1 > /proc/sys/vm/overcommit_memory | ||
LANG=en_US.UTF-8; export LANG | ||
|
||
sudo -u $GF_USER $ASADMIN start-domain domain1 | ||
;; | ||
stop) | ||
echo -n "Stopping GlassFish server: glassfish" | ||
|
||
sudo -u $GF_USER $ASADMIN stop-domain domain1 | ||
echo "." | ||
;; | ||
*) | ||
echo "Usage: /etc/init.d/glassfish {start|stop}" | ||
|
||
exit 1 | ||
esac | ||
exit 0 |
13 changes: 13 additions & 0 deletions
13
doc/sphinx-guides/source/_static/installation/files/etc/systemd/glassfish.service
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[Unit] | ||
Description = GlassFish Server v4.1 | ||
After = syslog.target network.target | ||
|
||
[Service] | ||
User=glassfish | ||
ExecStart = /usr/bin/java -jar /usr/local/glassfish4/glassfish/lib/client/appserver-cli.jar start-domain | ||
ExecStop = /usr/bin/java -jar /usr/local/glassfish4/glassfish/lib/client/appserver-cli.jar stop-domain | ||
ExecReload = /usr/bin/java -jar /usr/local/glassfish4/glassfish/lib/client/appserver-cli.jar restart-domain | ||
Type = forking | ||
|
||
[Install] | ||
WantedBy = multi-user.target |
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
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
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
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
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
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
Oops, something went wrong.