Difficulty starting zoneminder on system startup

Forum for questions and support relating to the 1.24.x releases only.
Locked
User avatar
lyallp
Posts: 137
Joined: Fri Nov 26, 2010 2:36 am
Location: Adelaide, Australia

Difficulty starting zoneminder on system startup

Post by lyallp »

I have zoneminder working just fine, using the web interface (after I added an

Code: Select all

LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so; export LD_PRELOAD
to my apache startup.

My webcam works just fine, in this case.

However, I am having great difficulty starting zoneminder using my system startup scripts, it starts just fine, but does not appear to have the LD_PRELOAD propogating down to the servers, and my webcam is showing as a green screen with static in the top 5%.

If I stop/start using the web interface, things all work fine.

I assume it's something to do with the perl zmpkg.pl constraining the environment it allows on it's children?

I tried using wget to use the web interface to start but I have authentication turned on and don't know how to generate a suitable series of 'wget's to login. I can generate the start/stop events after snooping the apache access log.

Suggestions would be greatly appreciated.
...Lyall
User avatar
jdhar
Posts: 125
Joined: Fri Oct 01, 2010 9:15 pm
Location: California

Post by jdhar »

I made use of the ld.so.preload file... if you stick your shared-lib in /etc/ld.so.preload, it will automatically get loaded no matter what. That might help in your instance.

For eg:

srv1@viatest:~/httpsegmenter$ cat /etc/ld.so.preload
/usr/lib/libv4l/v4l1compat.so
eyeZm, Native iPhone App for ZoneMinder: http://www.eyezm.com

Version 1.3 now available on iTunes, introduces Montage view, HTTPS/SSL support and H264 native streaming!

Subscribe to RSS feed for updates: http://www.eyezm.com/rssfeed.xml
User avatar
lyallp
Posts: 137
Joined: Fri Nov 26, 2010 2:36 am
Location: Adelaide, Australia

Post by lyallp »

Gasp! You mean you expect to load it for every single process invocation?
Sheesh, worst case scenario, maybe if I was creating a stand alone zoneminder box, but that would be a last resort for my general usage machine.

Thanks for replying, however. Much appreciated.
...Lyall
Locked