added --logfile option

logging to file facilitates background operation
especially when using start-stop-daemon wrapper