Page 1 of 1

can't start the video device

Posted: Mon Jun 13, 2005 7:28 pm
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?

Posted: Mon Jun 13, 2005 9:28 pm
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.

Posted: Tue Jun 14, 2005 1:48 am
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

Posted: Tue Jun 14, 2005 3:07 am
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.

Posted: Tue Jun 14, 2005 4:39 am
by cordel
Yes the user and group should match apaches

zm running with SuSE

Posted: Tue Jun 14, 2005 4:54 am
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

Posted: Tue Jun 14, 2005 5:01 am
by cordel
Thank you for chiming in with that Rainer.
:D

Posted: Tue Jun 14, 2005 5:02 am
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?

Posted: Tue Jun 14, 2005 5:04 am
by cordel
You might check some of your other scripts and see what they have for a functions file.

Posted: Tue Jun 14, 2005 6:28 pm
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.

Posted: Tue Jun 14, 2005 6:38 pm
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. :)

Posted: Thu Jun 16, 2005 1:05 am
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

functions

Posted: Thu Jun 16, 2005 8:22 am
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