Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jul 2005 14:56:18 -0400
From:      Sven Willenberger <sven@dmv.com>
To:        Slony Mailing List <slony1-general@gborg.postgresql.org>
Cc:        ports@freebsd.org
Subject:   Slony I rc startup script on FreeBSD outputs to terminal
Message-ID:  <1122404179.1611.43.camel@lanshark.dmv.com>

next in thread | raw e-mail | index | archive | help
slony1-1.1.0
FreeBSD 5.4 (both amd64 and i386)

I am having an issue with the ports-supplied startup script that gets
installed into /usr/local/etc/rc.d in that regardless of
the /usr/local/etc/slon.conf settings, the daemon will not detach from
tty (if started via an ssh session for example) and will output message
to terminal (in addition to the logfile). For now I have resorted to my
old handrolled startup script which basically follows the su slony -c
"slon T1 dbname=.... etc 2> slon-db.err 1> slon-db.out &"

I would much prefer to use the supplied startup script so that I can use
syslog logging (and newsyslog file rotation using the slon.pid). Any
ideas on how to get this script to background slony and to suppress all
output to terminal?

slon.conf:

syslog 2
log_level 4
log_timestamp 1

cluster_name T1
conn_info 'dbname=masked user=slony host=localhost port=5432'

#sync_interval 100
#sync_interval_timeout 1000
#sync_group_maxsize 6
#vac_frequency 3
#desired_sync_time 60000

Sven




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1122404179.1611.43.camel>