Left over sock & lock files

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
chuck8530
Posts: 94
Joined: Sun Nov 21, 2021 2:45 am

Left over sock & lock files

Post by chuck8530 »

In trying to learn more about ZM in Docker I wandered to /run/zm. I discovered zm...sock and zm...lock and other file going back almost 2 months - over 1500 files. Shouldn't that get cleaned out on every (re)start?
:?:
User avatar
iconnor
Posts: 3266
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Left over sock & lock files

Post by iconnor »

They should but whoever created your docker probably doesn't know about that.

In redhat/ubuntu land we use a tmpfiles.d config to do it.
chuck8530
Posts: 94
Joined: Sun Nov 21, 2021 2:45 am

Re: Left over sock & lock files

Post by chuck8530 »

So if I were to add "rm -f /run/zm/*" at the beginning of the SQL section in entrypoint.sh
That way every time we run - docker start zoneminder - it would get cleaned out.
Thoughts?
Post Reply