Page 1 of 1

Start zm failed on SUSE 10

Posted: Thu May 25, 2006 1:13 pm
by byte
I've another problem here (already been searching) and tried this link...

http://www.zoneminder.com/forums/viewto ... e&start=15

But it give's me this error/message..

Starting resource managerdone
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
You must run zmupdate.pl manualyLoading compose table winkeys shiftctrl latin1.adddone

Again thanks for any tips, still feeling my way around this lovely piece of s/w

Posted: Thu May 25, 2006 1:23 pm
by jameswilson
so can you start zm manually but you getthis error if trying to start from a script, im sorry i dont quite understand the issue

Posted: Thu May 25, 2006 1:33 pm
by byte
Sorry yes I can start it from command line fine with no error's, but with the standard zm script from the source of the Zoneminder script folder and putting that zm script into the /etc/init.d and creating link's to the rc.5 making sure that zm start's AFTER apache2 and mysql, the bttv drivers are also loaded before zm start's as well...

Thanks again for you insight James :)

Posted: Thu May 25, 2006 1:48 pm
by jameswilson
ok then as you know i know nothing of suse but

in your init.d/zm script do you have at the start

#!/bin/sh
# description: Control ZoneMinder as a Service
# chkconfig: 2345 99 00

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

Posted: Thu May 25, 2006 1:56 pm
by byte
Yes but on the how to I followed here...

http://www.zoneminder.com/forums/viewto ... light=suse

It said comment out the...

#. /etc/rc.d/init.d/functions

Which I did, should I remove the #

Posted: Thu May 25, 2006 2:07 pm
by jameswilson
i have just scanned through the how-to and i didnt see a refernece to commoneting out that bit but i could have missed it. Does zm start from the command line manually with that commented out?

And are you sudo'ing the startup script?

Apart from the glaringly obvious mate i cant really help, i think you need someone who is using suse to respond. I will continue but i dont want you thinking i know nothing cos youd be right!! lol

James

Posted: Thu May 25, 2006 2:19 pm
by byte
commenting it out is mentioned here...

Under the configuring ZoneMinder to be started on bootup...

# remove the line related to include functions

In SUSE we don't have folder init.d/functions, uncommenting leads to this error...

/etc/init.d/zm: line 6: /etc/rc.d/init.d/functions: No such file or directory

and doesn't start zm at all.

I apperiacte your help so far thanks! I'll keep digging myself

Posted: Thu May 25, 2006 2:25 pm
by jameswilson
Configure ZoneMinder to be started at boot time
Code:

su -
# from zoneminder source directory
cp scripts/zm /etc/rc.d
cd /etc/rc.d
chmod +x zm
# edit zm with your favorite text editor (vi ?)
# remove the line related to include functions
# replace all occurences of echo_success by echo success
# replace all occurences of echo_failure by echo failure
# save the changes (ie :x!)
cd rc5.d
ln -s ../zm S99zm
ln -s ../zm K00zm



Now you can reboot your computer to apply changes

Well we are at the end of the process
Start all servers if they are not allready started when you boot your computer :
Code:
sudo /etc/rc.d/apache2 start
sudo /etc/rc.d/mysql start
sudo zmpkg.pl start



Now open your browser and point to http://localhost/zm.php
Create your monitor and start playing !


Im still missing it mate sorry

Posted: Thu May 25, 2006 2:28 pm
by byte
jameswilson wrote:Configure ZoneMinder to be started at boot time
Code:

su -
# from zoneminder source directory
cp scripts/zm /etc/rc.d
cd /etc/rc.d
chmod +x zm
# edit zm with your favorite text editor (vi ?)
# remove the line related to include functions
# replace all occurences of echo_success by echo success
# replace all occurences of echo_failure by echo failure
# save the changes (ie :x!)
cd rc5.d
ln -s ../zm S99zm
ln -s ../zm K00zm



Now you can reboot your computer to apply changes

Well we are at the end of the process
Start all servers if they are not allready started when you boot your computer :
Code:
sudo /etc/rc.d/apache2 start
sudo /etc/rc.d/mysql start
sudo zmpkg.pl start



Now open your browser and point to http://localhost/zm.php
Create your monitor and start playing !


Im still missing it mate sorry
I have Bolded it LOL

Posted: Thu May 25, 2006 2:34 pm
by jameswilson
+CHrist im loosing how did i miss that !!

What i cant understand is if you can run it from the command line after boot is complete then you should be able to run it last on the init5
Dont suppose a few things are at order 99 are there?

Posted: Thu May 25, 2006 2:37 pm
by byte
only zm is S99 rest are S15 or less

Posted: Thu May 25, 2006 3:06 pm
by jameswilson
Sorry mate im out of ideas. I suppose if it was me id try a cron job on startup but i dont know when this would be performed but could be a temp bodge till we find out properly