Page 1 of 1

Difficulty starting zoneminder on system startup

Posted: Mon Dec 06, 2010 1:14 am
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.

Posted: Mon Dec 06, 2010 5:52 am
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

Posted: Mon Dec 06, 2010 6:29 am
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.