Vivek Khera vivek
Tue Jul 18 20:15:06 PDT 2006
On Jul 18, 2006, at 2:45 PM, Bill Moran wrote:

> I'm looking to rewrite the slon.sh script provided with the FreeBSD
> port in order to make it behave more like the Apache rc script does.
> i.e. you'd have something in rc.conf like this:
>
> slon_enable='YES'
> slon_profiles="db1 db2 db3"
> slon_db1_configfile="/usr/local/etc/slon/db1.conf"
> slon_db2_configfile="/usr/local/etc/slon/db2.conf"
> slon_db3_configfile="/usr/local/etc/slon/db3.conf"
>
> ... and the startup script would automagically do the right thing.
>
> Before I charge forward, I wanted to get any feedback/suggestions
> on this approach.  Anyone see any problems with doing this, or
> have suggestions on how to do it better than the Apache script does?

seems reasonable to me.  you could also model it after the 'jail'  
startup script which does something similar to start up multiple jails.

whatever you come up with i'll put into the port as long as it is  
back-compatible with the existing one.

personally, I use daemontools to monitor and manage all my slon  
daemons.  i do not use the rc script.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2530 bytes
Desc: not available
Url : http://gborg.postgresql.org/pipermail/slony1-general/attachments/20060719/602269aa/smime.bin



More information about the Slony1-general mailing list