[Pkg-postgresql-public] Bug#788813: [slony1-2-bin] initscript and perl tools do not agree on pidfile name
Antti Salmela
antti at salmela.fi
Fri Nov 13 10:42:31 UTC 2015
With the following patch to the /etc/init.d/slony1, and renaming /etc/slony1/slon_tools.conf
to /etc/slony1/slon_tools_replication.conf, and altering
/etc/default/slony1 to include cluster name, I can make init-script and perl tools both use the same
pidfile name.
SLON_TOOLS_START_NODES="replication:5"
--- slony1.orig 2015-11-10 11:04:32.000000000 +0200
+++ slony1.new 2015-11-10 11:04:49.000000000 +0200
@@ -40,7 +40,7 @@
}
pidfile() {
- echo "/var/run/slony1/$1.pid"
+ echo "/var/run/slony1/$1.pid" | sed -e 's/:/_/;'
}
prepare_start() {
--
Antti Salmela
More information about the Pkg-postgresql-public
mailing list