From: mikee <mi...@mi...> - 2007-03-29 19:43:11
|
I have mysql/mysqld installed. I can start the daemon by hand, the subsequent sql statements work as expected, etc. How do I get mysqld to start at system startup? On linux I would use the 'service' and 'chkconfig' commands. Mike |
From: Alexander K. H. <ak...@fi...> - 2007-03-29 19:50:03
|
mikee wrote: > I have mysql/mysqld installed. I can start the daemon by hand, the > subsequent sql statements work as expected, etc. How do I get mysqld > to start at system startup? On linux I would use the 'service' and > 'chkconfig' commands. > > Mike > > - In Fink you use "sudo daemonic enable mysql" to have it start up with your system. Check out "fink info mysql" for more information. -- Alexander K. Hansen Fink User Liason/Documenter ak...@fi... |
From: mikee <mi...@mi...> - 2007-03-29 19:54:29
|
On Thu, 29 Mar 2007, Alexander K. Hansen might have said: > mikee wrote: > >I have mysql/mysqld installed. I can start the daemon by hand, the > >subsequent sql statements work as expected, etc. How do I get mysqld > >to start at system startup? On linux I would use the 'service' and > >'chkconfig' commands. > > > >Mike > > > >- > In Fink you use "sudo daemonic enable mysql" to have it start up with > your system. Check out "fink info mysql" for more information. That's neat. Is there a way to have 'daemonic' start mysql now without a reboot of the box or is that a feature of 'launchctl'? Mike |
From: Alexander K. H. <ak...@fi...> - 2007-03-29 20:13:22
|
mikee wrote: > On Thu, 29 Mar 2007, Alexander K. Hansen might have said: > > >> mikee wrote: >> >>> I have mysql/mysqld installed. I can start the daemon by hand, the >>> subsequent sql statements work as expected, etc. How do I get mysqld >>> to start at system startup? On linux I would use the 'service' and >>> 'chkconfig' commands. >>> >>> Mike >>> >>> - >>> >> In Fink you use "sudo daemonic enable mysql" to have it start up with >> your system. Check out "fink info mysql" for more information. >> > > That's neat. Is there a way to have 'daemonic' start mysql now without a > reboot of the box or is that a feature of 'launchctl'? > > Mike > Nope--it's just to set things up for boot-time. Daemons frequently are started manually the first time, or sometimes the package installation can start them up. -- Alexander K. Hansen Fink User Liason/Documenter ak...@fi... |
From: Christopher B. <to...@th...> - 2007-03-29 21:10:55
|
On 03/29/07 at 13:13, Alexander K. Hansen wrote: > mikee wrote: > > > > That's neat. Is there a way to have 'daemonic' start mysql now > > without a reboot of the box or is that a feature of 'launchctl'? > > =20 > Nope--it's just to set things up for boot-time. Daemons frequently are= =20 > started manually the first time, or sometimes the package installation=20 > can start them up. Speaking of daemonic and launchctl/launchd, can anyone say the status of updating daemonic to support launchd on OS X 10.4 and above? I see feature requests for it in both daemonic's and Fink's trackers on Sourceforge, and it is listed in the 'Roadmap: Medium Term Goals' on the Fink wiki. Daemonic really should support the preferred method of controlling daemons (not to mention all the other neat stuff that launchd can do), rather than using only a deprecated method that is likely to disappear altogether at some point. I'm just curious about it at this point, I'm not currently running any Fink-installed daemons on any of my Tiger systems. --=20 Christopher Bort <to...@th...> <http://www.thehundredacre.net/> |
From: Daniel J. <da...@da...> - 2007-03-29 23:39:35
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mar 29, 2007, at 5:10 PM, Christopher Bort wrote: > On 03/29/07 at 13:13, Alexander K. Hansen wrote: > >> mikee wrote: >>> >>> That's neat. Is there a way to have 'daemonic' start mysql now >>> without a reboot of the box or is that a feature of 'launchctl'? >>> >> Nope--it's just to set things up for boot-time. Daemons >> frequently are >> started manually the first time, or sometimes the package >> installation >> can start them up. > > Speaking of daemonic and launchctl/launchd, can anyone say the > status of > updating daemonic to support launchd on OS X 10.4 and above? I see > feature > requests for it in both daemonic's and Fink's trackers on > Sourceforge, and > it is listed in the 'Roadmap: Medium Term Goals' on the Fink wiki. > Daemonic > really should support the preferred method of controlling daemons > (not to > mention all the other neat stuff that launchd can do), rather than > using > only a deprecated method that is likely to disappear altogether at > some > point. I'm just curious about it at this point, I'm not currently > running > any Fink-installed daemons on any of my Tiger systems. This is one of those things that everyone agrees is something that should be done but no one has actually gotten around to doing it. Part of the problem is that daemonic is old and crufty C code which few people really understand and upgrading to launchd without breaking existing packages is very tricky. The old StartupItems simply used shell scripts and therefore could do anything a shell script could do. Launchd is a lot more restrictive and needs to track the status of every process it's managing. For example, it's not uncommon for daemons to fork a new process and then quit. That causes launchd to have a nervous breakdown. :) I've played with a couple of ideas but never come up with a satisfactory replacement until now. It turns out that MacPorts came up with a good solution involving a utility called daemondo and some wrapper scripts. I'm working on a replacement daemonic (written in Perl for easier maintenance) now. No promises on how long it'll take. :) There's a "daemondo" package in my experimental cvs directory in danielj/10.4/daemondo.info if anyone want's to look at it. It'll be part of my solution. Daemondo is actually a pretty neat program that will run programs in response to various system notifications like network changes and wake-from-sleep in addition to acting as an adapter to launchd. Daniel -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (Darwin) Comment: http://homepage.mac.com/danielj7/publickey.txt iD8DBQFGDEVj4sDFGYouOqARAt3nAJ45rQWVz2FGPlSG/VO63VEQe6p0uwCgjYgh LNL725LHHS3wMW+x+OZHQ4I= =uSYf -----END PGP SIGNATURE----- |
From: Roland K. <rk...@e1...> - 2007-03-30 08:50:28
|
Hi Daniel! On 30 Mar 2007, at 01:01, Daniel Johnson wrote: > I've played with a couple of ideas but never come up with a > satisfactory replacement until now. It turns out that MacPorts came > up with a good solution involving a utility called daemondo and some > wrapper scripts. I'm working on a replacement daemonic (written in > Perl for easier maintenance) now. No promises on how long it'll > take. :) There's a "daemondo" package in my experimental cvs > directory in danielj/10.4/daemondo.info if anyone want's to look at > it. It'll be part of my solution. Daemondo is actually a pretty neat > program that will run programs in response to various system > notifications like network changes and wake-from-sleep in addition to > acting as an adapter to launchd. > Awesome! Does this mean that I finally can have 'postqueue -f' run every time my notebook gets connected to the internet? That would also be useful for automatically merging my elog's... Ciao, Roland -- TU Muenchen, Physik-Department E18, James-Franck-Str., 85748 Garching Telefon 089/289-12575; Telefax 089/289-12570 -- CERN office: 892-1-D23 phone: +41 22 7676540 mobile: +41 76 487 4482 -- Any society that would give up a little liberty to gain a little security will deserve neither and lose both. - Benjamin Franklin -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GS/CS/M/MU d-(++) s:+ a-> C+++ UL++++ P+++ L+++ E(+) W+ !N K- w--- M + !V Y+ PGP++ t+(++) 5 R+ tv-- b+ DI++ e+++>++++ h---- y+++ ------END GEEK CODE BLOCK------ |
From: Daniel J. <da...@da...> - 2007-03-30 11:43:29
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mar 30, 2007, at 4:49 AM, Roland Kuhn wrote: > Hi Daniel! > > On 30 Mar 2007, at 01:01, Daniel Johnson wrote: > >> I've played with a couple of ideas but never come up with a >> satisfactory replacement until now. It turns out that MacPorts came >> up with a good solution involving a utility called daemondo and some >> wrapper scripts. I'm working on a replacement daemonic (written in >> Perl for easier maintenance) now. No promises on how long it'll >> take. :) There's a "daemondo" package in my experimental cvs >> directory in danielj/10.4/daemondo.info if anyone want's to look at >> it. It'll be part of my solution. Daemondo is actually a pretty neat >> program that will run programs in response to various system >> notifications like network changes and wake-from-sleep in addition to >> acting as an adapter to launchd. >> > Awesome! Does this mean that I finally can have 'postqueue -f' run > every time my notebook gets connected to the internet? That would > also be useful for automatically merging my elog's... Sure. From daemondo: The argument restart-netchange will cause the daemon to be restarted when the network configuration changes. This is a shortcut for the more verbose --restart-darwin-notify com.apple.system.config.network_change. You would have to set the restart command like: --restart-cmd postqueue -f ; See the daemondo package description for details. Daniel -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (Darwin) Comment: http://homepage.mac.com/danielj7/publickey.txt iD8DBQFGDPfZ4sDFGYouOqARAr61AJ92FHje0l0mBqeIX+FFguZ7JSPc2QCfSf8b yIYc22FSiGZTYWQXP4sbd74= =WKes -----END PGP SIGNATURE----- |