Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Have an option to disable internal cleanup #35

Open
sergeolkhovik opened this issue Jun 17, 2021 · 0 comments
Open

Have an option to disable internal cleanup #35

sergeolkhovik opened this issue Jun 17, 2021 · 0 comments

Comments

@sergeolkhovik
Copy link

I've 4 cameras served by 4 instances of kerberos-docker (each writes into own sub-folder, i.e. /var/lib/kerberos.io/camX), and I noticed that some cameras have very less videos in the storage folder. I assume the reason is that I have 4 autoremoval instances running at the same time and depending on system load some may clean more files in its camera storage than others?
Is it possible to disable autoremoval code by, for example, checking for .noautoremoval file in this run.sh script?
Something like this:

[ -e /etc/opt/kerberosio/capture/.noautoremoval ] || autoremoval &

?
And then I'll write own script that will walk over all storages and do a clean-up, via cron or systemd timers.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant