If you want something that checks if the slons are running and automagically restarts them, slon-mkservice.sh in the FreeBSD package will make a service directory a la DJB daemontools.
There are at least two different versions of that script. The one currently packaged with the FreeBSD package is kinda old (but is well integrated in the package). There's also a version in CVS head that's much more sophisticated (IMHO, of course, I wrote it so...). If you want to go with the daemontools approach, you should take a look at the two different scripts. Andrew On 6/4/07, Brian A. Seklecki <[EMAIL PROTECTED]> wrote: > > X-Mailer: Evolution 2.8.0-1mdv2007.0 > > Ditch Mandrake and switch to FreeBSD; we have a profile-enabled slony rc.d > script. </flame_bait> > > No seriously.... run for the hills. > > ~BAS > > On Mon, 4 Jun 2007, Mark Stosberg wrote: > > > Hello, > > > > I'd like to set slony to start on boot. I use the "altperl" scripts and > > usually use these commands for starting and stopping: > > > > slon_start 1 > > slon_start 2 > > slon_kill > > > > One simple option I've considered is modifying the PostgreSQL "rc.d" > > scripts so that these commands run just after PostgreSQL starts, and > > just before it shutdowns. > > > > Are other people using this method, or a standalone that Slony script > > that checks if PostgreSQL is running? (maybe "launch_clusters.sh" ?) > > > > Mark > > > > > > > > _______________________________________________ > > Slony1-general mailing list > > [email protected] > > http://gborg.postgresql.org/mailman/listinfo/slony1-general > > > > l8* > -lava (Brian A. Seklecki - Pittsburgh, PA, USA) > http://www.spiritual-machines.org/ > > "Guilty? Yeah. But he knows it. I mean, you're guilty. > You just don't know it. So who's really in jail?" > ~James Maynard Keenan > > _______________________________________________ > Slony1-general mailing list > [email protected] > http://gborg.postgresql.org/mailman/listinfo/slony1-general > _______________________________________________ Slony1-general mailing list [email protected] http://gborg.postgresql.org/mailman/listinfo/slony1-general
