FP
This commit is contained in:
25
deploy/stream-control-agent.service
Normal file
25
deploy/stream-control-agent.service
Normal file
@@ -0,0 +1,25 @@
|
||||
# Agent Ubuntu — /etc/systemd/system/stream-control-agent.service
|
||||
#
|
||||
# L'agent doit tourner dans la MÊME session que OBS s'il pilote un OBS graphique.
|
||||
# Sur une VM headless, OBS tourne généralement sous Xvfb : garder le même User.
|
||||
#
|
||||
# systemctl daemon-reload && systemctl enable --now stream-control-agent
|
||||
|
||||
[Unit]
|
||||
Description=Stream Control — agent OBS
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=obs
|
||||
WorkingDirectory=/opt/stream-control-agent
|
||||
Environment=NODE_ENV=production
|
||||
# Chemin du fichier d'identité (jeton + agentId) — doit être inscriptible.
|
||||
Environment=AGENT_CONFIG=/opt/stream-control-agent/agent.config.json
|
||||
ExecStart=/usr/bin/node /opt/stream-control-agent/dist/index.js
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user