can't start the video device

Support and queries relating to all previous versions of ZoneMinder
Locked
bhomass
Posts: 103
Joined: Sat Jun 11, 2005 6:54 pm

can't start the video device

Post by bhomass »

I am running into the same problem repeated. when starting apache and view the console, my /dev/video0(0) is red and can not see any image.

zmu at first says can not see the device, and later does see the device. but console still has device in red.

ps aux shows that no zm* process is running, and there is no error in zmdc.log.

is there a sure proof way to start zm running?
bhomass
Posts: 103
Joined: Sat Jun 11, 2005 6:54 pm

Post by bhomass »

in the tutorial, there are instructions for setting up zm to run at system reboot. However, this does not work for Suse. what is the equivalent way to start up zm manually? I tried running zm, but it calls some other script which does not exists in my dist.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

ZM is programed upon redhat workstation so the script is programed for RH. Submitions of working scripts for other Distros are welcome. I don't work much with any of the other distros since I hate multiboot and have limited computers so I could not advise you how to construct a script for your distro. Hopefully some one else here could provide one asuming you searched the forum and one has not been provided already.
Regards,
Cordel
bhomass
Posts: 103
Joined: Sat Jun 11, 2005 6:54 pm

Post by bhomass »

short of make zm work for Suse, I think the only way to get things started is by manually start the zmc process?

I know I have a strange file owner problem right now. I shall recompile and make things conform to standard. once I do that, should I run zmc as wwwrun? which is the user for apache2 on Suse.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Yes the user and group should match apaches
rmo
Posts: 22
Joined: Fri Jan 21, 2005 6:57 pm
Location: Germany

zm running with SuSE

Post by rmo »

Hi bhomass,

compile zm with

Code: Select all

 --with-webuser=wwwrun --with-webgroup=www --with-webdir=/srv/www/htdocs/zoneminder --with-cgidir=/srv/www/cgi-bin ...
after compiling there is an init-script zm. You have to copy it to /etc/init.d.
Edit zm, change all echo_success/failure to echo success/failure.

Code: Select all

 # /etc/init.d/zm start 
should start zoneminder.

regards,

Rainer

SuSE 9.3, zm-1.21.0
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Thank you for chiming in with that Rainer.
:D
bhomass
Posts: 103
Joined: Sat Jun 11, 2005 6:54 pm

Post by bhomass »

thanks to rmo

I did exactly what you have with the config parameters.

as for the zm script. copying and running would still fail, because near the top of the script, there is a reference to /etc/rc.d/init.d/functions, which does not exist in Suse.

furthermore, does anyone have experience starting zm as a service which starts at boo?
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

You might check some of your other scripts and see what they have for a functions file.
bhomass
Posts: 103
Joined: Sat Jun 11, 2005 6:54 pm

Post by bhomass »

unfortunately I don't see other bash scripts in zm.

I commented out the line with functions, and modified all the echo_. ran zm start, but it failed.

this is still unresolved.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Not the zm scripts but the other scripts to start apache or mysql would have the correct function file and give you a feel for the correct syntax. :)
bhomass
Posts: 103
Joined: Sat Jun 11, 2005 6:54 pm

Post by bhomass »

ok, I upgraded to 1.21.1 and can now run the zm script. don't know why the same fix just doesn't work for 1.21.0

Thanks for both of your help. this is a really important progress. :D
rmo
Posts: 22
Joined: Fri Jan 21, 2005 6:57 pm
Location: Germany

functions

Post by rmo »

On SuSE systems /etc/rc.d/init.d/functions isn't available.
Edit zm init script.

Code: Select all

# Source function library.
#. /etc/rc.d/init.d/functions

Regards,

Rainer
Locked