-
Notifications
You must be signed in to change notification settings - Fork 0
/
rc.local-lb-as-example
34 lines (28 loc) · 1.53 KB
/
rc.local-lb-as-example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
# THIS FILE IS ADDED FOR COMPATIBILITY PURPOSES
#
# It is highly advisable to create own systemd services or udev rules
# to run scripts during boot instead of using this file.
#
# In contrast to previous versions due to parallel execution during boot
# this script will NOT be run after all other services.
#
# Please note that you must run 'chmod +x /etc/rc.d/rc.local' to ensure
# that this script will be executed during boot.
touch /var/lock/subsys/local
# set classpath ( former classpath-config.sh and config-bit.sh )
export CLASSPATH=$CLASSPATH:/home/ec2-user/ist-cnv-sudoku/instrumented:/home/ec2-user/ist-cnv-sudoku/project:/home/ec2-user/ist-cnv-sudoku/BIT:/home/ec2-user/ist-cnv-sudoku/BIT/samples:.
export CLASSPATH=$CLASSPATH:/tmp/cnv/BIT:/tmp/cnv/BIT/samples:./
# export java variables (former java-config-rnl-vm.sh)l
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/
export JAVA_ROOT=/usr/lib/jvm/java-7-openjdk-amd64/
export JDK_HOME=/usr/lib/jvm/java-7-openjdk-amd64/
export JRE_HOME=/usr/lib/jvm/java-7-openjdk-amd64/jre
export PATH=/usr/lib/jvm/java-7-openjdk-amd64/bin/:$PATH
export SDK_HOME=/usr/lib/jvm/java-7-openjdk-amd64/
export _JAVA_OPTIONS="-XX:-UseSplitVerifier "$_JAVA_OPTIONS
export CLASSPATH=$CLASSPATH:/home/ec2-user/aws-java-sdk-1.11.762/lib/aws-java-sdk-1.11.762.jar:/home/ec2-user/aws-java-sdk-1.11.762/third-party/lib/*:.
export CLASSPATH=$CLASSPATH:/home/ec2-user:.
su ec2-user -c 'java autoscaler/AutoScaler `curl ifconfig.me` &'
su ec2-user -c 'java loadbalancer/LoadBalancer `curl ifconfig.me` &'
wait