Skip to content
Snippets Groups Projects
Commit f5920659 authored by alfredo's avatar alfredo
Browse files

rimozione da start & stop

parent b4806a78
No related branches found
No related tags found
No related merge requests found
#!/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
#!/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
#!/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
#!/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment