-
Notifications
You must be signed in to change notification settings - Fork 493
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install Guide: various improvements #2884
- Glassfish init script #2640 - Solr init script #2401 - more on blocking endpoints #976 - documented :SystemEmail #2663 - a bit on admin and monitoring - reinstalling fresh
- Loading branch information
Showing
6 changed files
with
212 additions
and
53 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
doc/sphinx-guides/source/_static/installation/files/etc/init.d/glassfish
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,44 @@ | ||
#! /bin/sh | ||
# chkconfig: 2345 99 01 | ||
# description: GlassFish App Server | ||
|
||
set -e | ||
|
||
ASADMIN=/usr/local/glassfish4/bin/asadmin | ||
|
||
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 | ||
|
||
#echo | ||
#echo "GLASSFISH IS UNDER MAINTENANCE;" | ||
#echo "PLEASE DO NOT USE service init script." | ||
#echo | ||
LANG=en_US.UTF-8; export LANG | ||
$ASADMIN start-domain domain1 | ||
echo "." | ||
;; | ||
stop) | ||
echo -n "Stopping GlassFish server: glassfish" | ||
#echo | ||
#echo "GLASSFISH IS UNDER MAINTENANCE;" | ||
#echo "PLEASE DO NOT USE service init script." | ||
#echo | ||
|
||
$ASADMIN stop-domain domain1 | ||
echo "." | ||
;; | ||
|
||
*) | ||
echo "Usage: /etc/init.d/glassfish {start|stop}" | ||
exit 1 | ||
esac | ||
|
||
exit 0 |
35 changes: 35 additions & 0 deletions
35
doc/sphinx-guides/source/_static/installation/files/etc/init.d/solr
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,35 @@ | ||
**** | ||
#!/bin/sh | ||
|
||
# Starts, stops, and restarts Apache Solr. | ||
# | ||
# chkconfig: 35 92 08 | ||
# description: Starts and stops Apache Solr | ||
|
||
SOLR_DIR="/usr/local/solr-4.6.0/example" | ||
JAVA_OPTIONS="-Xmx1024m -DSTOP.PORT=8079 -DSTOP.KEY=mustard -jar start.jar" | ||
LOG_FILE="/var/log/solr.log" | ||
JAVA="/usr/bin/java" | ||
|
||
case $1 in | ||
start) | ||
echo "Starting Solr" | ||
cd $SOLR_DIR | ||
$JAVA $JAVA_OPTIONS 2> $LOG_FILE & | ||
;; | ||
stop) | ||
echo "Stopping Solr" | ||
cd $SOLR_DIR | ||
$JAVA $JAVA_OPTIONS --stop | ||
;; | ||
restart) | ||
$0 stop | ||
sleep 1 | ||
$0 start | ||
;; | ||
*) | ||
echo "Usage: $0 {start|stop|restart}" >&2 | ||
exit 1 | ||
;; | ||
esac | ||
|
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