picam-streamer icon indicating copy to clipboard operation
picam-streamer copied to clipboard

/run/shm/hooks files disappearing

Open plehatron opened this issue 6 years ago • 0 comments

Hey,

Thanks for this awesome project. Did you run into any problems with files in /run/shm/hooks disappearing after a certain period of time? In my case, after a couple of hours the symlink gets broken. This is happening on Raspbian Stretch Lite version 2017-09-07.

From what I was able to investigate, option RemoveIPC=yes of systemd could be the culprit. systemd by default cleans up interprocess communication for user accounts who are not logged in, and we're using the pi user as the owner of hooks dir, so it's files get cleaned up after a while.

One of the solutions is to uncomment line with RemoveIPC and change it to no in /etc/systemd/logind.conf, but I was wondering if there's something else that could be done, maybe run the picam-stream as some other system user?

plehatron avatar May 02 '18 18:05 plehatron