Package: bucardo
Version: 4.99.7-1
Reports bucardo failed to start when it was successful:
root@dewey:/# /etc/init.d/bucardo start
[....] Starting PostgreSQL replication system: bucardoChecking for existing
processes
Removing /var/run/bucardo/fullstopbucardo
Starting Bucardo
failed!
root@dewey:/# cat /var/run/bucardo/bucardo.mcp.pid
14325
/usr/bin/bucardo
Sun Sep 29 19:16:21 2013
root@dewey:/# ps auwx | grep bucardo
bucardo 14325 0.0 0.6 22664 14312 ? S 19:16 0:00 Bucardo
Master Control Program v4.99.7.
postgres 14327 0.1 0.6 54692 14268 ? Ss 19:16 0:00 postgres:
bucardo bucardo [local] SELECT
postgres 14344 0.0 0.2 48108 5796 ? Ss 19:16 0:00 postgres:
bucardo spud ::1(32817) idle in transaction
postgres 14349 0.0 0.4 48532 8864 ? Ss 19:16 0:00 postgres:
bucardo spud ::1(32827) idle
root 14453 0.0 0.0 1888 580 pts/1 S+ 19:18 0:00 grep
bucardo
root@dewey:/#
It looks like the init.d script checks for the existence of $PID before the
daemon has had a chance to start properly:
log_daemon_msg "Starting $DESC" $NAME
su bucardo --command "$DAEMON start"
if [ -f "$PIDFILE" ] ; then
log_end_msg 0
else
log_end_msg 1
fi
--
Brian May <[email protected]>