-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from ljkeller/feature/ew_deploy
Nice-to-have scripts/changes
- Loading branch information
Showing
6 changed files
with
26 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
echo "Pinging google to see if internet is available..." | ||
ping 8.8.8.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
echo "Printing SPARK iotc related files at /opt/spark/iot/" | ||
echo "------------------------------------------" | ||
find /opt/spark/iot/ -type f | ||
echo "------------------------------------------" | ||
|
||
echo "IoT service secrets.json file content" | ||
echo "------------------------------------------" | ||
cat /opt/spark/iot/secrets.json | ||
if [ $? -ne 0 ]; then | ||
echo "secrets.json file not found. Ensure it exists in /opt/spark/iot/ directory" | ||
fi | ||
echo "------------------------------------------" | ||
|
||
echo "Please cross reference the files and secrets.json to ensure all dependencies exist" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
journalctl -u iotc-spark-server.service -f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
echo "Checking iotc-spark-server.service status..." | ||
systemctl list-units --type=service --all | grep -i iotc-spark-server.service | ||
|
||
echo "Checking iotc-spark-server.service logs..." | ||
journalctl -u iotc-spark-server.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
systemctl restart iotc-spark-server.service |