Release v1.1.1: Improved Stability and Atomic File Operations
Summary
This release focuses on improving the overall stability and fault tolerance of nnnvr, ensuring it can recover more gracefully from unexpected system shutdowns or power failures.
Key Changes
-
Atomic File Operations
File writing processes have been upgraded to use atomic operations. This prevents critical configuration or lock files from becoming corrupted if the system crashes or loses power during a write operation. -
Smarter Lock File Management
The application lock filennnvr.lockis now created in the system's temporary directory by default, rather than the working directory. This effectively resolves issues where stale lock files prevent the NVR from starting after a hard reboot. -
Configuration Changes
UpdatedREADME.mdto include the newtempDirparameter in the Configuration section.
You can now optionally specify atempDirin yournnnvr.json:
{
"tempDir": "/dev/shm/nnnvr",
"streams": [ ... ]
}(If omitted, nnnvr will automatically use your OS's default temporary directory.)