diff --git a/lib/scheduler/scheduler.js b/lib/scheduler/scheduler.js
index <HASH>..<HASH> 100644
--- a/lib/scheduler/scheduler.js
+++ b/lib/scheduler/scheduler.js
@@ -180,6 +180,10 @@ function connectEndpoint_p(endpoint, timeout, shouldContinue) {
       })
       .then(function(status) {
         if (deleteLogFileOnExit) {
+          if (logFilePath === '/dev/null'){
+            logger.trace("Refusing to delete /dev/null.");
+            return;
+          }
           logger.trace('Normal exit, deleting log file ' + logFilePath);
           fs.unlink(logFilePath, function(err) {
             if (err)
Don't delete /dev/null when it's used as a log file endpoint.