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
#!/bin/bash | |
##################################################################################### | |
## docker-status.sh - Bash script that checks status for docker swarm services and nodes. | |
## Functions: | |
# check_replication - Check if all stacks are running in service. | |
# check_swarm_nodes - Check if all nodes are reacheble and healthy. | |
# check_swarm_services - Check if any of the services failed. | |
##################################################################################### |
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
import time | |
import multiprocessing as mp | |
import numpy as np | |
import cv2 | |
import gi | |
gi.require_version('Gst', '1.0') | |
gi.require_version('GstRtspServer', '1.0') | |
from gi.repository import GObject, Gst, GstRtspServer |