diff --git a/luciMicroservizio/bin/start.bash b/luciMicroservizio/bin/start.bash index 5ce43a15829aa585bf8869decbcbe5e7bf7afee5..90bbb7a7aa031d3957d2fd06ca9513154ba8c158 100755 --- a/luciMicroservizio/bin/start.bash +++ b/luciMicroservizio/bin/start.bash @@ -1,6 +1,6 @@ #!/bin/bash status="OFF" running=$(/usr/bin/pgrep code.Luci) -if [ -f "/home/debian/CONFIG/luciMicroservizio/STATUS" ]; then status=$(cat /home/debian/CONFIG/luciMicroservizio/STATUS); fi +if [ -f "/home/debian/CONFIG/luci/STATUS" ]; then status=$(cat /home/debian/CONFIG/luci/STATUS); fi if [ ! -z "$running" ]; then status="OFF"; fi -if [ $status == "ON" ]; then (java -classpath /home/debian/CONFIG/luciMicroservizio:/home/debian/CONFIG/luciMicroservizio/org.eclipse.paho.client.mqttv3_1.2.5.jar:/home/debian/CONFIG/luciMicroservizio/org.json-1.0.0.v201011060100.jar:/home/debian/CONFIG/luciMicroservizio/bcprov-jdk13-167.jar:/home/debian/CONFIG/luciMicroservizio/bcpkix-jdk13-167.jar /home/debian/CONFIG/luciMicroservizio/bin/code.Luci &>/dev/null&); fi +if [ $status == "ON" ]; then (java -classpath /home/debian/CONFIG/luci:/home/debian/CONFIG/luci/org.eclipse.paho.client.mqttv3_1.2.5.jar:/home/debian/CONFIG/luci/org.json-1.0.0.v201011060100.jar:/home/debian/CONFIG/luci/bcprov-jdk13-167.jar:/home/debian/CONFIG/luci/bcpkix-jdk13-167.jar /home/debian/CONFIG/luci/bin/code.Luci &>/dev/null&); fi diff --git a/luciMicroservizio/bin/stop.bash b/luciMicroservizio/bin/stop.bash index 29f3f8f27191ad3fef80a9cde01d6a0af68231b4..3ae6c8eceba8707fb2d43da3fbb621271822a71e 100755 --- a/luciMicroservizio/bin/stop.bash +++ b/luciMicroservizio/bin/stop.bash @@ -1,5 +1,5 @@ #!/bin/bash status="NONE" -if [ -f "/home/debian/CONFIG/antifurtoMicroservizio/STATUS" ]; then status=$(cat /home/debian/CONFIG/antifurtoMicroservizio/STATUS); fi -if [ $status == "OFF" ]; then /home/debian/bin/stopag Antifurto; fi +if [ -f "/home/debian/CONFIG/luci/STATUS" ]; then status=$(cat /home/debian/CONFIG/luci/STATUS); fi +if [ $status == "OFF" ]; then /home/debian/bin/stopag luci; fi diff --git a/scenariMicroservizio/bin/start.bash b/scenariMicroservizio/bin/start.bash index 1997b689d5c1805a9b766472b94d23d62d4fe6ba..cab44caa8417e2a2b02b8a9505841378ed07721b 100755 --- a/scenariMicroservizio/bin/start.bash +++ b/scenariMicroservizio/bin/start.bash @@ -1,6 +1,6 @@ #!/bin/bash status="OFF" running=$(/usr/bin/pgrep scenari.Scenari) -if [ -f "/home/debian/CONFIG/scenariMicroservizio/STATUS" ]; then status=$(cat /home/debian/CONFIG/scenariMicroservizio/STATUS); fi +if [ -f "/home/debian/CONFIG/scenari/STATUS" ]; then status=$(cat /home/debian/CONFIG/scenari/STATUS); fi if [ ! -z "$running" ]; then status="OFF"; fi -if [ $status == "ON" ]; then (java -classpath /home/debian/CONFIG/scenariMicroservizio:/home/debian/CONFIG/scenariMicroservizio/org.eclipse.paho.client.mqttv3_1.2.5.jar:/home/debian/CONFIG/scenariMicroservizio/org.json-1.0.0.v201011060100.jar:/home/debian/CONFIG/scenariMicroservizio/bcprov-jdk13-167.jar:/home/debian/CONFIG/scenariMicroservizio/bcpkix-jdk13-167.jar /home/debian/CONFIG/scenariMicroservizio/bin/code.Antifurto &>/dev/null&); fi +if [ $status == "ON" ]; then (java -classpath /home/debian/CONFIG/scenari:/home/debian/CONFIG/scenari/org.eclipse.paho.client.mqttv3_1.2.5.jar:/home/debian/CONFIG/scenari/org.json-1.0.0.v201011060100.jar:/home/debian/CONFIG/scenari/bcprov-jdk13-167.jar:/home/debian/CONFIG/scenari/bcpkix-jdk13-167.jar /home/debian/CONFIG/scenari/bin/code.Antifurto &>/dev/null&); fi diff --git a/scenariMicroservizio/bin/stop.bash b/scenariMicroservizio/bin/stop.bash index 584f506da1e8864c92ba3f39fd6f02497b1bdcd4..d9ef79a9245a74a8317fe0d485f313945542157e 100755 --- a/scenariMicroservizio/bin/stop.bash +++ b/scenariMicroservizio/bin/stop.bash @@ -1,4 +1,4 @@ #!/bin/bash status="NONE" -if [ -f "/home/debian/CONFIG/scenariMicroservizio/STATUS" ]; then status=$(cat /home/debian/CONFIG/scenariMicroservizio/STATUS); fi +if [ -f "/home/debian/CONFIG/scenari/STATUS" ]; then status=$(cat /home/debian/CONFIG/scenari/STATUS); fi if [ $status == "OFF" ]; then /home/debian/bin/stopag Scenari; fi