> > But it *does* work without the -f flag. > > > > That's very strange, does it detach from the terminal without the -f ?
Can't say for certain. Presumably it does, but the program immediately exits and returns. If it does detach, it's not perceptible. You might try writing your own script that starts ssh and put that in rc.conf. It won't have the ongoing monitor-and-restart capabilities though. Alternatively, there is isakmpd/ipsec. That's integrated into the /etc/rc.d framework, though you still have to call ipsecctl from rc.local.