forked from libreqoe/libreqos

Add safegaurd against running LibreQoS.py more than once at a time. ISSUE #52

* Added file locking commands to the Python/Rust library. * When LibreQoS.py starts, it checks that /var/run/libreqos.lock does not exist. If it does, it checks that it contains a PID and that PID is not still running with a python process. * If the lock file exists and is valid, execution aborts. * If the lock file exists and is invalid, it is cleaned. * Cleans the lock on termination.


Author Herbert Wolverson Date Commit Parent d71f4103
+72 -2
5 changed files
+72 -2
5 changed files