Manjsi popravek stilov, mjpeg relay skripta in systemd service

master
Jure Podgorše 2023-06-09 18:44:47 +02:00
parent f829d3c96b
commit ea02fbaf63
3 changed files with 9 additions and 6 deletions

View File

@ -1,5 +1,11 @@
#!/bin/bash #!/bin/bash
source .env
# Inicializiraj kamero
url="$VIR/cm?cmnd=WcInit"
curl "$url"
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd $SCRIPT_DIR/mjpeg-relay cd $SCRIPT_DIR/mjpeg-relay
python2 relay.py http://localhost:8989/stream python2 relay.py http://localhost:8989/stream

View File

@ -5,13 +5,10 @@ After=network.target
[Service] [Service]
# Tuneliraj lokalni port 22 na streznikov port 2222 # Tuneliraj lokalni port 22 na streznikov port 2222
User=g1smo User=g1smo
RemainAfterExit=yes
WorkingDirectory=/home/g1smo/galerija-bot/mjpeg-relay
ExecStart=/usr/bin/screen -DmS mjpeg-relay /home/g1smo/galerija-bot/mjpeg-relay.sh ExecStart=/usr/bin/screen -DmS mjpeg-relay /home/g1smo/galerija-bot/mjpeg-relay.sh
RestartSec=5 RestartSec=5
#Restart=always Restart=always
Restart=on-failure Type=simple
Type=forking
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View File

@ -48,7 +48,7 @@ h2 {
border-bottom-left-radius: 50% 12%; border-bottom-left-radius: 50% 12%;
border-bottom-right-radius: 50% 12%; border-bottom-right-radius: 50% 12%;
/*min-height: 482.5px;*/ /*min-height: 482.5px;*/
min-height: 75%; min-height: 250px;
} }
#predvajaj { #predvajaj {