Skip to content

[DON'T MERGE] Linux startup scripts update (fixes #6805)#6822

Open
Dragas wants to merge 2 commits intomagefree:masterfrom
Dragas:master
Open

[DON'T MERGE] Linux startup scripts update (fixes #6805)#6822
Dragas wants to merge 2 commits intomagefree:masterfrom
Dragas:master

Conversation

@Dragas
Copy link

@Dragas Dragas commented Jul 10, 2020

also includes proper line endings

* fixes an issue where scripts would start in debug mode
* fixes an issue where client script would not have project version
* fixes an issue where start mage script would incorrectly point to two other scripts
@Dragas Dragas requested a review from JayDi85 July 11, 2020 06:15
@JayDi85 JayDi85 changed the title Fixes #6805 [DON'T MERGE] Linux startup scripts update (fixes #6805) Jul 28, 2020
@JayDi85 JayDi85 self-assigned this Jul 28, 2020
script_dir="$(dirname -- $script_dir)"
cd $script_dir

java -Xms256m -Xmx2g -XX:MaxPermSize=256m -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -jar "${script_dir}/lib/mage-client-${project.version}.jar"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would make this a bit more readable and make future diffs smaller if you broke these out into lines.

Suggested change
java -Xms256m -Xmx2g -XX:MaxPermSize=256m -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -jar "${script_dir}/lib/mage-client-${project.version}.jar"
java \
-Xms256m \
-Xmx2g \
-XX:MaxPermSize=256m \
-XX:+UseConcMarkSweepGC \
-XX:+CMSClassUnloadingEnabled \
-jar "${script_dir}/lib/mage-client-${project.version}.jar"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants