-
Notifications
You must be signed in to change notification settings - Fork 1
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 #24 from rcland12/raspbian_develop
Raspbian develop
- Loading branch information
Showing
7 changed files
with
36 additions
and
28 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 |
---|---|---|
|
@@ -7,7 +7,7 @@ stream-*.ts | |
*.plan | ||
data/ | ||
.process.pid | ||
nohup.out | ||
.log.out | ||
.stream_env | ||
|
||
### Linux ### | ||
|
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
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
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 |
---|---|---|
@@ -1,8 +1,27 @@ | ||
#!/bin/bash | ||
docker compose down | ||
echo "Stopped Triton and other Docker services if they were running." | ||
source .env | ||
|
||
pid=$(cat .process.pid) | ||
kill "$(($pid + 3))" | ||
rm .process.pid nohup.out | ||
echo "Stopped holly-stream." | ||
if [ -z $OBJECT_DETECTION ]; then echo "The environment variable OBJECT_DETECTION is required. This is a boolean value True/False."; fi | ||
|
||
if [ "${OBJECT_DETECTION}" == "True" ]; then | ||
echo "Stopping holly-stream..." | ||
pid=$(cat .process.pid) | ||
kill "$pid" | ||
rm .process.pid .log.out | ||
echo "Complete" | ||
|
||
echo "Stopping Triton..." | ||
docker compose down | ||
echo "Complete" | ||
|
||
|
||
elif [ "${OBJECT_DETECTION}" == "False" ]; then | ||
echo "Stopping holly-stream..." | ||
pkill ffmpeg | ||
rm .log.out | ||
echo "Complete" | ||
|
||
else | ||
echo "Invalid input for OBJECT_DETECTION. Expecting True or False; received ${OBJECT_DETECTION}." | ||
exit 120 | ||
fi |