forked from madhubkk/restapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdockerrun.sh
24 lines (21 loc) · 941 Bytes
/
dockerrun.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
##====> for simple restapp
#(cd /opt;nohup java -Dserver.port=8080 -jar /opt/restapp.jar > /var/log/rest_service.log 2>&1 &)
#sudo chmod 775 /var/log/rest_service.log
#sudo tail -f /var/log/rest_service.log &
##=====> for promethues
#(cd /opt;nohup java -javaagent:/opt/jmx_prometheus_javaagent-0.1.0.jar=9090:tomcat.yml -jar /opt/restapp.jar > /var/log/rest_service.log 2>&1 &)
#sudo chmod 775 /var/log/rest_service.log
#sudo tail -f /var/log/rest_service.log &
###====> for newrelic
(cd /opt;nohup java -Dserver.port=8080 -javaagent:/opt/newrelic/newrelic.jar -jar /opt/restapp.jar > /var/log/rest_service.log 2>&1 &)
sudo chmod 775 /var/log/rest_service.log
sudo tail -f /var/log/rest_service.log &
#====> for datadog
#hostname="hostname: `hostname`"
#nohup stress-ng --vm 4 &
#sed -i "s/# hostname: mymachine.mydomain/$hostname/g" /etc/dd-agent/datadog.conf
#service datadog-agent start
while true; do
sleep 100
done