Initial commit - stream factory
This commit is contained in:
13
services/cnews-http.service
Normal file
13
services/cnews-http.service
Normal file
@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=CNEWS HLS HTTP Server
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=eveny
|
||||
WorkingDirectory=/opt/stream-factory/hls
|
||||
ExecStart=/usr/bin/python3 -m http.server 8080
|
||||
Restart=always
|
||||
RestartSec=2
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
30
services/http-hls.service
Normal file
30
services/http-hls.service
Normal file
@ -0,0 +1,30 @@
|
||||
[Unit]
|
||||
Description=HLS Stream
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/opt/stream-factory/bin/http-hls.sh
|
||||
|
||||
# 🔥 CRITIQUE
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
|
||||
# 🔒 stabilité
|
||||
KillSignal=SIGINT
|
||||
TimeoutStopSec=10
|
||||
|
||||
# 👤 user
|
||||
User=eveny
|
||||
WorkingDirectory=/opt/stream-factory
|
||||
|
||||
# 📜 logs
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
|
||||
# 🧠 évite blocage
|
||||
StartLimitInterval=0
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user