[prev in list] [next in list] [prev in thread] [next in thread] 

List:       macports-users
Subject:    Re: MySQL5, OS X 10.4.10, startups, etc.
From:       "paul beard" <paulbeard () gmail ! com>
Date:       2007-09-30 17:18:00
Message-ID: aeca57d90709301018g4f5628blbb3c4b13b300a66c () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On 9/30/07, Chris Janton <face@centosprime.com> wrote:
>
> I am trying to get mysql to start/restart properly on my system.
>
> sudo port install mysql5 +darwin_8 +server
> ...
>
> I get the output
>
> --->  Creating launchd control script
> ###########################################################
> # 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
> ###########################################################
>
> I finish up (after the installation) with
>
> sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql5.plist
> nothing found to load
>
> hmmm - any ideas why this isn't found/loaded/etc ?


what does  `locate org.macports.mysql5.plist` give you?

I get:
/Library/LaunchDaemons/org.macports.mysql5.plist
/opt/local/etc/LaunchDaemons/org.macports.mysql5/org.macports.mysql5.plist

file /Library/LaunchDaemons/org.macports.mysql5.plist
/Library/LaunchDaemons/org.macports.mysql5.plist: symbolic link to
`/opt/local/etc/LaunchDaemons/org.macports.mysql5/org.macports.mysql5.plist'

The symlink will allow to keep the file(s) MacPorts needs in the /opt/local
tree and still get them to fire at boot time.

Conversely, you can add the appropriate lines to launchd.conf and get things
going.

more /etc/launchd.conf
launchctl  load
/opt/local/etc/LaunchDaemons/org.macports.dbus/org.macports.dbus.p
list
launchctl  load
/opt/local/etc/LaunchDaemons/org.macports.apache2/org.macports.apa
che2.plist
launchctl  load
/opt/local/etc/LaunchDaemons/org.macports.mysql5/org.macports.mysq
l5.plist

I would vote for MacPorts to take the latter approach, with the post-install
message explaining that

########
## To get the application to run at boot time,
## echo launchctl  load
/opt/local/etc/LaunchDaemons/org.macports.mysql5/org.macports.mysql5.plist
>> /etc/launchd.conf
##
##########

-- 
Paul Beard / www.paulbeard.org/
<paulbeard@gmail.com/paulbeard@mac.com>

[Attachment #5 (text/html)]

<span class="Apple-style-span" style="font-size: small;"><br><br></span><div><span \
class="gmail_quote"><span class="Apple-style-span" style="font-size: small;">On \
9/30/07, </span><b class="gmail_sendername"><span class="Apple-style-span" \
style="font-size: small;"> Chris Janton</span></b><span class="Apple-style-span" \
style="font-size: small;"> &lt;<a \
href="mailto:face@centosprime.com">face@centosprime.com</a>&gt; \
wrote:</span></span><blockquote class="gmail_quote" \
style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"> <span \
class="Apple-style-span" style="font-size: small;">I am trying to get mysql to \
start/restart properly on my system.<br><br>sudo port install mysql5 +darwin_8 \
+server<br>...<br><br>I get the output<br><br>---&gt;&nbsp;&nbsp;Creating launchd \
control script <br>##############################</span><span \
class="Apple-style-span" style="font-size: small;">#############################<br># \
A startup item has been generated that will aid in<br># starting mysql5 with launchd. \
It is disabled <br># by default. Execute the following command to start it,<br># and \
to cause it to launch at startup:<br>#<br># sudo launchctl load -w \
/Library/LaunchDaemons/<br>org.macports.mysql5.plist<br>##############################
 </span><span class="Apple-style-span" style="font-size: \
small;">#############################<br><br>I finish up (after the installation) \
with<br><br>sudo launchctl load -w /Library/LaunchDaemons/org</span><span \
                class="Apple-style-span" style="font-size: small;">
.macports.mysql5.plist<br>nothing found to load<br><br>hmmm - any ideas why this \
isn&#39;t found/loaded/etc ?</span></blockquote><div><span class="Apple-style-span" \
style="font-size: small;"><br class="webkit-block-placeholder"> \
</span></div><div><span class="Apple-style-span" style="font-size: small;">what does \
&nbsp;`locate org.macports.mysql5.plist` give you?&nbsp;</span></div><span \
class="Apple-style-span" style="font-size: small;"><br></span></div><div> <span \
class="Apple-style-span" style="font-size: small;">I get:</span></div><div><div><span \
class="Apple-style-span" style="font-size: \
small;">/Library/LaunchDaemons/org.macports.mysql5.plist</span></div><div><span \
                class="Apple-style-span" style="font-size: small;">
/opt/local/etc/LaunchDaemons/org.macports.mysql5/org.macports.mysql5.plist</span></div><div><span \
class="Apple-style-span" style="font-size: small;"><br \
class="webkit-block-placeholder"></span></div><div><div><span \
class="Apple-style-span" style="font-size: small;"> file \
/Library/LaunchDaemons/org.macports.mysql5.plist</span></div><div><span \
class="Apple-style-span" style="font-size: \
small;">/Library/LaunchDaemons/org.macports.mysql5.plist: symbolic link to \
`/opt/local/etc/LaunchDaemons/org.macports.mysql5/org.macports.mysql5.plist&#39; \
</span></div><div><span class="Apple-style-span" style="font-size: small;"><br \
class="webkit-block-placeholder"></span></div><div><span class="Apple-style-span" \
style="font-size: small;">The symlink will allow to keep the file(s) MacPorts needs \
in the /opt/local tree and still get them to fire at boot time.&nbsp; \
</span></div><div><span class="Apple-style-span" style="font-size: small;"><br \
class="webkit-block-placeholder"></span></div><div><span class="Apple-style-span" \
style="font-size: small;">Conversely, you can add the appropriate lines to  \
launchd.conf and get things going.&nbsp;</span></div><div><span \
class="Apple-style-span" style="font-size: small;"><br \
class="webkit-block-placeholder"></span></div><div><div><span \
class="Apple-style-span" style="font-size: small;"> more \
/etc/launchd.conf&nbsp;</span></div><div><span class="Apple-style-span" \
style="font-size: small;">launchctl &nbsp;load \
/opt/local/etc/LaunchDaemons/org.macports.dbus/org.macports.dbus.p</span></div><div><span \
class="Apple-style-span" style="font-size: small;"> list&nbsp;</span></div><div><span \
class="Apple-style-span" style="font-size: small;">launchctl &nbsp;load \
/opt/local/etc/LaunchDaemons/org.macports.apache2/org.macports.apa</span></div><div><span \
class="Apple-style-span" style="font-size: small;"> \
che2.plist&nbsp;</span></div><div><span class="Apple-style-span" style="font-size: \
small;">launchctl &nbsp;load \
/opt/local/etc/LaunchDaemons/org.macports.mysql5/org.macports.mysq</span></div><div><span \
class="Apple-style-span" style="font-size: small;"> \
l5.plist&nbsp;</span></div><div><span class="Apple-style-span" style="font-size: \
small;"><br class="webkit-block-placeholder"></span></div></div></div><div><span \
class="Apple-style-span" style="font-size: small;">I would vote for MacPorts to take \
the latter approach, with the post-install message explaining that \
</span></div><div><span class="Apple-style-span" style="font-size: small;"><br \
class="webkit-block-placeholder"></span></div><div><span class="Apple-style-span" \
style="font-size: small;">########</span></div><div><span class="Apple-style-span" \
style="font-size: small;"> ## To get the application to run at boot \
time,&nbsp;</span></div><div><span class="Apple-style-span" style="font-size: \
small;">## echo&nbsp;launchctl &nbsp;load \
/opt/local/etc/LaunchDaemons/org.macports.mysql5/org.macports.mysql5.plist &gt;&gt; \
/etc/launchd.conf </span></div><div><span class="Apple-style-span" style="font-size: \
small;">##&nbsp;</span></div><div><span class="Apple-style-span" style="font-size: \
small;">##########</span></div></div><span class="Apple-style-span" style="font-size: \
small;"> <br>-- <br>Paul Beard / <a \
href="http://www.paulbeard.org/">www.paulbeard.org/</a><br>&lt;<a \
href="http://paulbeard@gmail.com/paulbeard@mac.com">paulbeard@gmail.com/paulbeard@mac.com</a>&gt;</span><br>




_______________________________________________
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic