added -i option for pid file, HUP for reopening log file