Slony I rc startup script on FreeBSD outputs to terminal

Sven Willenberger sven at dmv.com
Tue Jul 26 18:55:15 GMT 2005


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



More information about the freebsd-ports mailing list