Created attachment 401398 [details] zoneminder-1.28.1-r1.ebuild with permanent /var/lib/zoneminder directory In the 1.28.1 ebuild, the /var/lib/zoneminder/{events,images} directories are created temporarily, but does not persist after building the package. The /usr/share/zoneminder/www/{events,images} directories have symlinks to these directories in /var/lib/zoneminder. With these symlinks broken, zoneminder will throw errors and will not record events. Assuming it is important for /usr/share/zoneminder/www/{events,images} to remain symlinks that point outside of the web directory, the following should fix it: > src_install { > ... > -dodir /var/lib/zoneminder /var/lib/zoneminder/images /var/lib/zoneminder/events > +keepdir /var/lib/zoneminder /var/lib/zoneminder/images /var/lib/zoneminder/events > ... >} Maybe there is a better solution, but this works for me.
I added another -r1 ebuild, this time to support systemd.
Created attachment 401460 [details] zoneminder-1.28.1-r1.ebuild with permanent /var/lib/zoneminder directory and systemd
Created attachment 401462 [details] systemd zoneminder.service file
Created attachment 402628 [details] systemd zoneminder.service file Apparently this works better without specifying user and group in the systemd service file.
Thanks a lot. This is part of the ZM 1.30.0 ebuild now in the main tree. Enjoy!