X-Git-Url: https://git.8kb.co.uk/?p=slony-i%2Fpgbouncer_follower;a=blobdiff_plain;f=README.md;fp=README.md;h=0b0fee1141852472d182a0468fd976636621f8f1;hp=e98d8e977a172ba9e2fbf406f39514ed976d75a2;hb=9fd228fb2ed5575c6cbc5c244e1cdb0f7eaabae3;hpb=b16268179c6f926bc61e9498262467ef28bdc25c diff --git a/README.md b/README.md index e98d8e9..0b0fee1 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,20 @@ to pgbouncer host if IPv4 addressing has been used for the slony conninfos. The script can be either run on a schedule or as a daemon with the "D" flag: -# pgbouncer_follower.pl -f [-D] +```bash +$ pgbouncer_follower.pl -f [-D] +``` + +To run as a daemon in debian: + +```bash +$ sudo cp init.debian /etc/init.d/pgbouncer_follower_rw +$ cp pgbouncer_follower.pl /var/slony/pgbouncer_follower/pgbouncer_follower.pl +$ cp pgbouncer_follower_rw.conf /var/slony/pgbouncer_follower/pgbouncer_follower_rw.conf +$ sudo chmod +x /etc/init.d/pgbouncer_follower_rw +$ sudo update-rc.d pgbouncer_follower_rw start 99 2 3 4 5 . stop 24 0 1 6 +$ sudo invoke-rc.d pgbouncer_follower_rw start +``` ##Configuration options