Initial commit - stream factory
This commit is contained in:
13
scripts/restart_stream.sh
Executable file
13
scripts/restart_stream.sh
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "=== Restart CNEWS $(date) ===" >> /opt/stream-factory/logs/restart_stream.log
|
||||
|
||||
systemctl stop cnews-http.service
|
||||
systemctl stop http-hls.service
|
||||
|
||||
rm -f /opt/stream-factory/hls/*
|
||||
systemctl start http-hls.service
|
||||
sleep 3
|
||||
systemctl start cnews-http.service
|
||||
|
||||
echo "=== Restart terminé $(date) ===" >> /opt/stream-factory/logs/restart_stream.log
|
||||
Reference in New Issue
Block a user