• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1118
  • Last Modified:

rc.local in FreeBSD 6

Hi,

  I am using FreeBSD 6, and just have my MYSQL installed. However, in order to make start up automatically after reboot, my book told me to add the following

    /usr/local/.../mysql.server start
 
  to /etc/rc.local

  But I didn't find this file. Is the name changed? Moved to other directory or actually I have to create one? Please advice. Thanks.

Bezier98
0
bezier98
Asked:
bezier98
  • 2
  • 2
2 Solutions
 
NopiusCommented:
Just copy your startup script to: /usr/local/etc/rc.d/ directory
this should work.
0
 
NopiusCommented:
Also name startup script as your_script_name.sh (with .sh extention, it's mandatory for script to run at startup).
script should understand at least 'start' and 'stop' arguments
0
 
gheistCommented:
Normal MySQL from packages or ports does install startup script in /usr/local/etc/rc.d/ directory.
When you run it with rcvar parameter you find out one variable to set to "YES" inside /etc/rc.conf

rc.local is to be forgotten.
0
 
gheistCommented:
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.
I will leave the following recommendation for this question in the Cleanup topic area:

Split between Nopius http:#16265404 and gheist http:#16277850

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

gheist
EE Cleanup Volunteer
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now