create log file before restarting nginx