Pass proper flag when the '-k' option was not specified.
Make sure to turn off log file rotation when no log file has been specified.