#19248 closed defect (invalid)
Incorrect launchctl item for notes in mysql install
Reported by: | scott@… | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.7.1 |
Keywords: | Cc: | chrswllms@… | |
Port: | mysql5 mysql5-devel |
Description (last modified by raimue (Rainer Müller))
I just did a port install mysql5 +server When it was done, it output a small instruction, included below:
########################################################### # A startup item has been generated that will aid in # starting mysql5 with launchd. It is disabled # by default. Execute the following command to start it, # and to cause it to launch at startup: # # sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql5.plist
That file does not exist, the closest I have to it is org.macports.mysql5-devel.plist
Change History (12)
comment:1 Changed 16 years ago by raimue (Rainer Müller)
Description: | modified (diff) |
---|---|
Owner: | changed from macports-tickets@… to ryandesign@… |
Port: | mysql5 mysql5-devel added |
comment:2 follow-up: 3 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → invalid |
---|---|
Status: | new → closed |
The instructions are being output by MacPorts base at the same time that the plist is created. So they cannot be incorrect.
comment:3 follow-up: 4 Changed 16 years ago by chrswllms@…
Replying to ryandesign@…:
The instructions are being output by MacPorts base at the same time that the plist is created. So they cannot be incorrect.
I also installed mysql5 and everything's running fine but the plist for mysql5 isn't there:
$ ls /Library/LaunchDaemons/org* /Library/LaunchDaemons/org.macports.apache2.plist
Not sure what the fix is for this but could someone post what the contents of this file should be in the meantime?
comment:4 follow-up: 5 Changed 16 years ago by blb@…
Replying to chrswllms@…:
I also installed mysql5 and everything's running fine but the plist for mysql5 isn't there:
$ ls /Library/LaunchDaemons/org* /Library/LaunchDaemons/org.macports.apache2.plist
Not sure what the fix is for this but could someone post what the contents of this file should be in the meantime?
Did you install "mysql5" or "mysql5 +server" as the +server variant is what sets up the plist?
comment:5 Changed 16 years ago by chrswllms@…
Replying to blb@…:
Did you install "mysql5" or "mysql5 +server" as the +server variant is what sets up the plist?
I didn't use the +server variant. I ended up installing mysql5 through the install of php5 +mysql5. Is there any way to get the server variant of mysql5 added to my mysql5 installation?
comment:6 Changed 16 years ago by chrswllms@…
FYI - I just did an update of mysql5 using the -server variant but still don't have the file in either /Library/LaunchDaemons or /opt/local/etc/LaunchDaemons.
comment:8 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
To add the +server variant to an existing mysql5 install:
sudo port -nf upgrade mysql5 +server
Note: "-server" deselects the server variant (which has no effect since it's deselected by default). "+server" selects the server variant.
comment:9 Changed 16 years ago by chrswllms@…
Perfect. I was doing an update and not an upgrade. That worked.
comment:10 follow-up: 11 Changed 16 years ago by scott@…
Interesting, I installed mysql5 and forgot the +server variant last night. I ran sudo port upgrade mysql5-devel +server. If all it has to do is a little launchd fiddling, it ended up rebuilding the entire thing. I did not trust it, removed it and started it clean. Is this not the intended behavior? I referenced the correct command as I pulled it from http://www.nabble.com/Forgot-to-add-%2Bvariant-td22877156.html#a22877156
My bash history shows sudo port -d upgrade mysql5-devel +server
comment:11 Changed 16 years ago by chrswllms@…
Replying to scott@…:
My bash history shows sudo port -d upgrade mysql5-devel +server
Try it again with the -nf flags.
Make sure the correct port is active. Check
port installed mysql5 mysql5-devel
. If mysql5 is not active, switch by usingport deactivate
andport activate
.Please remember WikiFormatting.