#!/bin/rc # start standard fossil setup # fossilstart PARTITION [name] rfork e if(! ~ $venti ?*){ echo please set venti env variable as needed exit no.venti } foscons=fscons fossrv=fossil fospart=$1 if(~ $1 '') fospart=/dev/sdC0/fossil if(! ~ $2 ''){ foscons=fscons.$2 fossrv=$2 } fossilcmd=fossil if(test -d /bin/fossil) fossilcmd=/bin/fossil/fossil $fossilcmd -c 'srv -p '$foscons echo 'fsys main config '$fospart >>/srv/fscons echo 'fsys main open -c 9000' >>/srv/fscons echo 'fsys main snaptime -s 60 -a 0500 -t 2880' >>/srv/$foscons echo 'srv -A '$fossrv >>/srv/$foscons echo 'listen tcp!*!564' >>/srv/$foscons exit ''