Home > Archive > Slony1 PostgreSQL Replication > July 2005 > Slon init script









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Slon init script
Ian Burrell

2005-07-25, 8:29 pm

Does anyone have an init script they use to start slon daemons on startup?

- Ian
Vivek Khera

2005-07-26, 1:24 pm

____________________
____________________
_______
Slony1-general mailing list
Slony1-general- AuKwsB3Fm+ugFIWk8tvy
RWD2FQJk+8+b@public.gmane.org
http://gborg.postgresql.org/mailman.../slony1-general

Christopher Browne

2005-07-26, 1:24 pm

Vivek Khera wrote:

>
> On Jul 25, 2005, at 6:22 PM, Ian Burrell wrote:
>
>
> I tried that once, but then discovered that if your Pg instance is in
> recovery mode (ie, after a crash or other unclean shutdown) your slon
> won't start up right. What I do is run under daemontools, which will
> keep trying to run slon until it succeeds or is told to stop.
>
> I have a script I distribute with the FreeBSD port to create the
> daemontools environment... I s'pose I should contrib that now that
> I've been reminded...
>

We use a script that runs as a cron job that periodically shuts off and
restarts the watchdogs.

That doesn't disturb a slon that is running, but will certainly restart
things when the system restarts...
Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com