DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 19th February 2009
lordyan lordyan is offline
New User
 
Join Date: Feb 2009
Posts: 2
Default ln -f at boot doesn't work

Hello,

I've installed OpenBSD4.4 with Apache/Php/Mysql. It works fine but..

to use mysql, I've made a link because of the chrooted things :

ln -f /var/run/mysql/mysql.sock /var/www/var/run/mysql/mysql.sock

But when I reboot, this link is deleted. So I've put it in /etc/rc.local, but it doesn't work.
At boot time, I've this message :
mysqld ln: /var/run/mysql/mysql.sock :not such a file or directory

How can I launch this "ln -f" command at boot ?

Thanks a lot!
lordyan
Reply With Quote
  #2   (View Single Post)  
Old 19th February 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

At boot time, you cannot create a link to a file -- in this case, a socket -- that does not yet exist. My assumption is that MySQL creates the socket when it is started. /var/run is for post-boot-time files.

I do not know if creating the socket and then linking it will work, I'm not a MySQL user. An alternative would be to configure your database to use TCP rather than sockets.
Reply With Quote
  #3   (View Single Post)  
Old 19th February 2009
lordyan lordyan is offline
New User
 
Join Date: Feb 2009
Posts: 2
Default

Hello,
thank you for the answer.
The line "ln -f /var/run/mysql/mysql.sock /var/www/var/run/mysql/mysql.sock"
must be put before the launch of mysqld in rc.local, and not after, has I did.
That's completly stupid but now it works
Thanks again
Reply With Quote
  #4   (View Single Post)  
Old 19th February 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Glad you got it working.
Reply With Quote
Reply

Tags
boot, ln -f, mysql.sock, mysqld ln:

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
fluxbox-generate_menu doesn't work nihonto NetBSD Package System (pkgsrc) 4 5th April 2022 03:03 PM
Marvell 88E8038 ethernet adaptor doesn't work with NetBSD 5, even with ACPI disabled GullibleJones NetBSD General 2 13th December 2009 10:55 AM
After an update stable doesn't boot hamba FreeBSD Installation and Upgrading 18 23rd October 2008 10:58 PM
FreeBSD doesn't boot purak FreeBSD Installation and Upgrading 7 9th October 2008 05:24 PM
KDE (X-Server) in FreeBSD 7.0 doesn't work correctly louie FreeBSD General 6 7th May 2008 11:53 PM


All times are GMT. The time now is 09:29 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick