openvibers/openvibe.media Commits
systemd: TimeoutStopSec 30 → 80 so a stop during a recording lets the recorder's 60 s trailer grace (and the 70 s forced exit) finish instead of SIGKILL cutting the file
Changes
@@@ -13,7 +13,9 @@ EnvironmentFile=/etc/openvibe/media.envExecStart=/usr/bin/env node /opt/openvibe.media/server/index.jsRestart=alwaysRestartSec=3--TimeoutStopSec=30++# Recordings get VOD_STOP_GRACE_MS (60 s) to flush trailers and the process force-exits at 70 s;++# systemd must not SIGKILL before that, or a stop during a recording cuts the file.++TimeoutStopSec=80KillSignal=SIGTERMNoNewPrivileges=truePrivateTmp=true
@@ -13,7 +13,9 @@ EnvironmentFile=/etc/openvibe/media.env
@@ -13,7 +13,9 @@ EnvironmentFile=/etc/openvibe/media.env
ExecStart=/usr/bin/env node /opt/openvibe.media/server/index.js
ExecStart=/usr/bin/env node /opt/openvibe.media/server/index.js
Restart=always
Restart=always
RestartSec=3
RestartSec=3
-TimeoutStopSec=30
+# Recordings get VOD_STOP_GRACE_MS (60 s) to flush trailers and the process force-exits at 70 s;
+# systemd must not SIGKILL before that, or a stop during a recording cuts the file.
+TimeoutStopSec=80
KillSignal=SIGTERM
KillSignal=SIGTERM
NoNewPrivileges=true
NoNewPrivileges=true
PrivateTmp=true
PrivateTmp=true