Skip to content
Snippets Groups Projects
Commit 4b1ebba9 authored by Elisa Giglio's avatar Elisa Giglio
Browse files

rimesso install.bash, start.bash, stop.bash

parent 2058284f
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
if [ ! -d "/home/debian/hat_home" ]; then mkdir /home/debian/hat_home; 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 [ ! -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
#!/bin/bash
status="NONE"
if [ -f "/home/debian/CONFIG/scenariMicroservizio/STATUS" ]; then status=$(cat /home/debian/CONFIG/scenariMicroservizio/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