Start zm failed on SUSE 10
Start zm failed on SUSE 10
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
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
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
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
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
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
Thanks again for you insight James
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
ok then as you know i know nothing of suse but
in your init.d/zm script do you have at the start
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
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
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 #
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 #
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
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
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
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
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
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
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
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 !)
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
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 !)
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
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
I have Bolded it LOLjameswilson 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 !)
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
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
+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?
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
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
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
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
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