Start zm failed on SUSE 10

Support and queries relating to all previous versions of ZoneMinder
Locked
byte
Posts: 39
Joined: Mon May 22, 2006 3:02 pm
Location: Sunny Essex in UK

Start zm failed on SUSE 10

Post 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
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post 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
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
byte
Posts: 39
Joined: Mon May 22, 2006 3:02 pm
Location: Sunny Essex in UK

Post 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 :)
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post 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
?
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
byte
Posts: 39
Joined: Mon May 22, 2006 3:02 pm
Location: Sunny Essex in UK

Post 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 #
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post 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
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
byte
Posts: 39
Joined: Mon May 22, 2006 3:02 pm
Location: Sunny Essex in UK

Post 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
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post 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
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
byte
Posts: 39
Joined: Mon May 22, 2006 3:02 pm
Location: Sunny Essex in UK

Post 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
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post 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?
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
byte
Posts: 39
Joined: Mon May 22, 2006 3:02 pm
Location: Sunny Essex in UK

Post by byte »

only zm is S99 rest are S15 or less
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post 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
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Locked