rc.local in FreeBSD 6

Posted on 2006-03-22
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
    LVL 27

    Expert Comment

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

    Accepted Solution

    Also name startup script as (with .sh extention, it's mandatory for script to run at startup).
    script should understand at least 'start' and 'stop' arguments
    LVL 61

    Assisted Solution

    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 61

    Expert Comment

    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 your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
    I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

    746 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

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now