Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 217868 - dev-db/slony1 - have init.d/conf.d support more than one cluster
Summary: dev-db/slony1 - have init.d/conf.d support more than one cluster
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-15 21:28 UTC by Mark Keisler
Modified: 2013-03-13 11:09 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
new slony1 init.d script and conf.d example (slony1_init.tar,10.00 KB, application/octet-stream)
2008-04-18 15:11 UTC, Mark Keisler
Details
conf file (slony1.conf,406 bytes, text/plain)
2013-03-13 11:08 UTC, Oleg Gawriloff
Details
init.d file (slony1.initd,899 bytes, text/plain)
2013-03-13 11:08 UTC, Oleg Gawriloff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Keisler 2008-04-15 21:28:50 UTC
The slony1 ebuild needs to support more than 1 cluster.  Both the /etc/conf.d/slony1 and /etc/init.d/slony1 would likely need to be updated in some way.  I'll try to come up with a soltuion as well since I need this for an enterprise deployment.  I have a custom init script that I have been using on RHEL, but I'd rather improve the gentoo ebuild.

Reproducible: Always
Comment 1 Mark Keisler 2008-04-18 15:11:17 UTC
Created attachment 150179 [details]
new slony1 init.d script and conf.d example

Here is a replacement version of the slony1 init script with a conf.d example.  One change is using the slon_start and slon_kill scripts that handle watchdog processes as well to keep slon running.  This necessitates setting up configuration files by the admin that are used by the perl admin scripts for slony that will contain variables needed for slon_start like the cluster name, dbhost, etc.  Do you think this is too big of an assumption? perhaps a useflag for this style init?  Or maybe just some docs?
Comment 2 Oleg Gawriloff 2013-03-13 11:08:38 UTC
Created attachment 341880 [details]
conf file
Comment 3 Oleg Gawriloff 2013-03-13 11:08:54 UTC
Created attachment 341882 [details]
init.d file
Comment 4 Oleg Gawriloff 2013-03-13 11:09:33 UTC
Here's my version. Based on start-stop-daemon and compatible with 2.x.x slony1.
Available at my overlay alongside with slony 2.1.3 at https://code.google.com/p/barzog-gentoo-overlay/