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

OP OpenVibers committed 23 Sept 2026 · 2601b0eb21 · 1 file, +3 −1


Changes

ddiff --git a/deploy/systemd/openvibe-media.service b/deploy/systemd/openvibe-media.service
iindex d5f7944..8471e97 100644
---- a/deploy/systemd/openvibe-media.service
++++ b/deploy/systemd/openvibe-media.service
@@@ -13,7 +13,9 @@ EnvironmentFile=/etc/openvibe/media.env
ExecStart=/usr/bin/env node /opt/openvibe.media/server/index.js
Restart=always
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
NoNewPrivileges=true
PrivateTmp=true