--- /dev/null
+--- bucardo.schema.orig 2012-10-24 15:56:27.588314685 -0700
++++ bucardo.schema 2012-10-24 15:55:52.119313660 -0700
+@@ -135,9 +135,9 @@
+ log_showlevel|0|Show log level in the log output?
+ log_showline|0|Show line number in the log output?
+ log_showtime|3|Show timestamp in the log output? 0=off 1=seconds since epoch 2=scalar gmtime 3=scalar localtime
+-log_conflict_file|bucardo_conflict.log|Name of the conflict detail log file
++log_conflict_file|/var/log/bucardo/bucardo_conflict.log|Name of the conflict detail log file
+ log_level|NORMAL|How verbose to make the logging. Higher is more verbose.
+-warning_file|bucardo.warning.log|File containing all log lines starting with "Warning"
++warning_file|/var/log/bucardo/bucardo.warning.log|File containing all log lines starting with "Warning"
+ \.
+
+ -- Versioning
+@@ -161,7 +161,7 @@
+ flatfile_dir|.|Directory to store the flatfile output inside of
+ host_safety_check||Regex to make sure we don't accidentally run where we should not
+ piddir|/var/run/bucardo|Directory holding Bucardo PID files
+-reason_file|bucardo.restart.reason.log|File to hold reasons for stopping and starting
++reason_file|/var/log/bucardo/bucardo.restart.reason.log|File to hold reasons for stopping and starting
+ semaphore_table|bucardo_status|Table to let apps know a sync is ongoing
+ statement_chunk_size|10000|How many primary keys to shove into a single statement
+ stats_script_url|http://www.bucardo.org/|Location of the stats script
DBNAME=${DBNAME-bucardo}
DBUSER=${DBUSER-bucardo}
LOGDIR=${LOGDIR-/var/log/${NAME}}
-PIDDIR=${LOGDIR-/var/run/${NAME}}
+PIDDIR=${PIDDIR-/var/run/${NAME}}
# Override defaults from /etc/sysconfig/bucardo, if file is present:
[ -f /etc/sysconfig/${NAME} ] && . /etc/sysconfig/${NAME}
bucardo_flags="--quiet ${hostopt} ${portopt} --dbname ${DBNAME} --dbuser ${DBUSER} --debugdir ${LOGDIR} --piddir ${PIDDIR}"
RETVAL=0
-cd $LOGDIR
-
start() {
# Make sure that bucardo is not already running:
if [ -f "${PIDDIR}/bucardo.mc.pid" ]; then
%define sysuser postgres
Name: bucardo
Version: 4.99.5
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Postgres replication system for both multi-master and multi-slave operations
Group: Applications/Databases
Source1: master-master-replication-example.txt
Source2: bucardo.init
+Patch0: bucardo-logfiles.patch
BuildArch: noarch
%prep
%setup -q -n %{realname}-%{version}
+%patch0 -p0
%build
%{_initrddir}/%{name}
%changelog
+* Wed Oct 24 2012 David E. Wheeler <david@justatheory.com> - 4.99.5-3
+- Fixed the init script so that the `stop` command actually works.
+- Added a patch to point all of the log files to the log directory.
+
* Tue Oct 2 2012 David E. Wheeler <david@justatheory.com> - 4.99.5-2
- Require postgres.
- Add start script running as postgres.