-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed java references in shell scripts
- Loading branch information
Showing
12 changed files
with
461 additions
and
494 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
java -Dfile.encoding=UTF-8 -classpath /usr/share/sdfs/lib/sdfs.jar:/usr/share/sdfs/lib/* org.opendedup.sdfs.VolumeConfigWriter "$@" | ||
/usr/share/sdfs/bin/jre/bin/java -Dfile.encoding=UTF-8 -classpath /usr/share/sdfs/lib/sdfs.jar:/usr/share/sdfs/lib/* org.opendedup.sdfs.VolumeConfigWriter "$@" | ||
|
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 |
---|---|---|
@@ -1 +1 @@ | ||
java -classpath /usr/share/sdfs/lib/sdfs.jar:/usr/share/sdfs/lib/* org.opendedup.sdfs.mgmt.cli.SDFSCmdline "$@" | ||
/usr/share/sdfs/bin/jre/bin/java -classpath /usr/share/sdfs/lib/sdfs.jar:/usr/share/sdfs/lib/* org.opendedup.sdfs.mgmt.cli.SDFSCmdline "$@" |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
java -Dfile.encoding=UTF-8 -classpath /usr/share/sdfs/lib/sdfs.jar:/usr/share/sdfs/lib/* org.opendedup.sdfs.VolumeConfigWriter "$@" --io-safe-sync=true | ||
/usr/share/sdfs/bin/jre/bin/java -Dfile.encoding=UTF-8 -classpath /usr/share/sdfs/lib/sdfs.jar:/usr/share/sdfs/lib/* org.opendedup.sdfs.VolumeConfigWriter "$@" --io-safe-sync=true | ||
|
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 |
---|---|---|
@@ -1,3 +1,42 @@ | ||
export LD_LIBRARY_PATH=/usr/share/sdfs/bin/:$LD_LIBRARY_PATH | ||
java -Djava.library.path=/usr/share/sdfs/bin/ -Dorg.apache.commons.logging.Log=fuse.logging.FuseLog\ | ||
-Dfuse.logging.level=INFO -Xmx2g -Xms2g -server -XX:+DisableExplicitGC -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:ParallelGCThreads=4 -XX:InitialSurvivorRatio=3 -XX:TargetSurvivorRatio=90 -Djava.awt.headless=$ -XX:+UseCompressedOops -classpath /usr/share/sdfs/lib/sdfs.jar:/usr/share/sdfs/lib/* org.opendedup.buse.sdfsdev.SDFSVolMgr "$@" | ||
#!/bin/bash | ||
modprobe nbd | ||
MEMORY="1000" | ||
CFG="" | ||
MPTG=4 | ||
MU="M" | ||
EXEC="/usr/share/sdfs/jsvc" | ||
PF="sdfs-ncfg.pid" | ||
if [[ $1:0:1} == '-' ]]; then | ||
while getopts ":v:" opt; do | ||
case $opt in | ||
v) | ||
CFG="/etc/sdfs/$OPTARG-volume-cfg.xml" | ||
PF="$OPTARG.pid" | ||
;; | ||
z) | ||
MEM=$OPTARG | ||
;; | ||
:) | ||
echo "Option -$OPTARG requires an argument." >&2 | ||
exit 1 | ||
;; | ||
esac | ||
done | ||
else | ||
CFG="/etc/sdfs/$1-volume-cfg.xml" | ||
fi | ||
|
||
if [ ! -n "$MEM" ]; then | ||
if [ -n "$CFG" ] && [ -f "$CFG" ]; then | ||
ac=$(echo 'cat //subsystem-config/local-chunkstore/@allocation-size' | xmllint --shell "$CFG" | grep -v ">" | cut -f 2 -d "=" | tr -d \"); | ||
MEMORY=$(((ac/10737418240*MPTG)+1000)) | ||
fi | ||
else | ||
MEMORY=$MEM | ||
fi | ||
|
||
LD_PRELOAD="/usr/share/sdfs/bin/libfuse.so.2" $EXEC -server -outfile '&1' -errfile '&2' -Djava.library.path=/usr/share/sdfs/bin/ -home /usr/share/sdfs/bin/jre -Dorg.apache.commons.logging.Log=fuse.logging.FuseLog\ | ||
-Dfuse.logging.level=INFO -Xmx$MEMORY$MU -Xms$MEMORY$MU \ | ||
-XX:+DisableExplicitGC -pidfile /var/run/$PF -XX:+UseG1GC -Djava.awt.headless=true \ | ||
-cp /usr/share/sdfs/lib/commons-daemon-1.0.15.jar:/usr/share/sdfs/lib/sdfs.jar:/usr/share/sdfs/lib/* org.opendedup.buse.sdfsdev.SDFSVolMgr "$@" |
Oops, something went wrong.