Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I can't seem to figure out how to have mysql start up when booting up for a server than I am now managing.

root@: uname -a
FreeBSD .server1 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov  5 04:19:18 UTC 2004    root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

The script that starts mysql is here: /usr/local/etc/rc.d/mysql.server

In /etc/rc.conf, I have mysql_enabled="yes"

Anyone have any ideas of what is missing?

share|improve this question
    
Do you get any error messages when you run /usr/local/etc/rc.d/mysql.server start as root? –  voretaq7 Feb 8 '10 at 20:41
    
Nope. Running that as root works fine and mysql is up and running. –  Echo Feb 8 '10 at 20:49

1 Answer 1

up vote 2 down vote accepted

In 5.3 all /usr/local/etc/rc.d scripts must end in .sh in order to be executed.

See /etc/rc.d/localpkg

share|improve this answer
    
aha! Good catch! the 5.3 part didn't register and you're 100% right. Rename the script to end in .sh and it should fire up. (Also take this time to remind your client that 5.x is End-Of-Life and an upgrade wouldn't be unwarranted :-) –  voretaq7 Feb 8 '10 at 20:56
    
Wonderful. I was thinking it might have been a problem with the script name since it was so different. I'll be able to test the change soon. –  Echo Feb 8 '10 at 21:18

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.