[Last Call] Learn how to a build a cloud-first strategyRegister Now


rc.local in FreeBSD 6

Posted on 2006-03-22
Medium Priority
Last Modified: 2013-11-22

  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.

Question by:bezier98
  • 2
  • 2
LVL 27

Expert Comment

ID: 16265333
Just copy your startup script to: /usr/local/etc/rc.d/ directory
this should work.
LVL 27

Accepted Solution

Nopius earned 1000 total points
ID: 16265404
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
LVL 62

Assisted Solution

gheist earned 1000 total points
ID: 16277850
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.
LVL 62

Expert Comment

ID: 16515368
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.

EE Cleanup Volunteer

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question