Professional Web Applications Themes

question about mysql-server.sh - FreeBSD

Hi, Long story made short: The mysql-server.sh that came with mysql-server-4.1.10a (installed from cvsup'ed ports) wouldn't work until after I rebooted the server. It's working now, so I know I shouldn't complain, but anyone know what happened? Long story: 1. Minimum installation, added ports distribution, cvsup to latest ports. 2. cd /usr/ports/mysql41-server; make install 3. '/usr/local/etc/rc.d/mysql-server.sh start' does nothing. 4. I noticed that rc_subr wasn't installed, even though freshports says it is required. So I installed rc_subr from ports, but still no love. 5. I put mysql_enable="YES" in rc.conf (since I would soon want it there anyway) and restarted the ...

  1. #1

    Default question about mysql-server.sh

    Hi,

    Long story made short: The mysql-server.sh that came with
    mysql-server-4.1.10a (installed from cvsup'ed ports) wouldn't work until
    after I rebooted the server. It's working now, so I know I shouldn't
    complain, but anyone know what happened?

    Long story:
    1. Minimum installation, added ports distribution, cvsup to latest ports.
    2. cd /usr/ports/mysql41-server; make install
    3. '/usr/local/etc/rc.d/mysql-server.sh start' does nothing.
    4. I noticed that rc_subr wasn't installed, even though freshports says
    it is required. So I installed rc_subr from ports, but still no love.
    5. I put mysql_enable="YES" in rc.conf (since I would soon want it there
    anyway) and restarted the server.
    6. mysql-server.sh works like a charm now.

    Thanks in advance to anyone who can help shine some light on what might
    have changed that made mysql-server.sh work.

    Chris

    Christopher Guest

  2. #2

    Default Re: question about mysql-server.sh

    rcsubr is the culprit, when you added the line in the rc.conf then all
    was well. You can add a line in the rc.conf and then run
    the /usr/local/etc/rc.d/mysql-server.sh start command with out having to
    reboot.
    Personally I really dislike rcsubr, makes me think that FreeBSD is
    drifting toward linux's overly comlexness... a script to start a script
    that starts a script that starts a script, blah blah blah....

    On Tue, 2005-04-05 at 10:36 -0400, Christopher Lane wrote: 

    Ed Guest

  3. #3

    Default Re: question about mysql-server.sh

    In the last episode (Apr 05), Ed Stover said: 

    On the plus side, a porter now can install a 10-line startup script
    that handles start/stop/restart/status cleanly, and the user can enable
    or disable the script, or modify options without editing the startup
    script itself and having their local changes n away the next time
    they update the port.

    --
    Dan Nelson
    com
    Dan Guest

Similar Threads

  1. Replies: 0
    Last Post: January 29th, 02:03 PM
  2. Replies: 7
    Last Post: June 12th, 07:43 AM
  3. Replies: 1
    Last Post: January 27th, 02:49 AM
  4. Replies: 0
    Last Post: January 24th, 10:55 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139