Mon Nov 12 07:11:44 PST 2012
- Previous message: [Slony1-commit] Slony-I-commit Using PGPASSFILE environment variable instead of PGPASSW
- Next message: [Slony1-commit] Slony-I-commit set the PGPASSWORD file to read-only, then close and unl
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Implementing pidfile to identify the main process of slony instance:
slon_tools.conf-sample - add configuration variables
. $PIDFILE_DIR : directory where the pid files will be created (default: /var/run/slony1)
. $PIDFILE_PREFIX : prefix to pidfiles of node instances (default: cluster name)
slon-tools.pm:
. start_slon : changed to init slon daemon with -p pidfile and added a sleep time
to give time to slon daemon initialize and create the pid file
. get_pid: changed to read the pid file to get the pid number
slon_kill.pl:
. change kill method of slon daemon to get_pid then use kill 15 instead 9 to
slon daemon remove the pid file properly
slon_watchdog2.pl:
. Add sleep time before first query status to avoid the watchdog kill slon_daemon
just immediatelly they started
. Do not try to kill slon proccess with 9.
Branch
------
master
Details
-------
http://git.postgresql.org/gitweb?p=slony1-engine.git;a=commitdiff;h=e1c8a5fc8d0ecec48bd87617b37cfa77e2899159
Modified Files
--------------
tools/altperl/slon-tools.pm | 46 ++++++++++++++++++++-------------
tools/altperl/slon_kill.pl | 46 ++++++++++++++--------------------
tools/altperl/slon_tools.conf-sample | 10 +++++++
tools/altperl/slon_watchdog2.pl | 8 +++++-
4 files changed, 64 insertions(+), 46 deletions(-)
- Previous message: [Slony1-commit] Slony-I-commit Using PGPASSFILE environment variable instead of PGPASSW
- Next message: [Slony1-commit] Slony-I-commit set the PGPASSWORD file to read-only, then close and unl
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list