From badba6ab3bb727bcc8793ae21f457b54c84f7d76 Mon Sep 17 00:00:00 2001 From: FSB -f Date: Mon, 12 Oct 2015 00:16:36 -0700 Subject: [PATCH] Update node-upstart.conf DRY mkdir -p would create 'node', when it creates 'log' on line 18 --- examples/node-upstart.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/node-upstart.conf b/examples/node-upstart.conf index 2f6cd42..53af0ca 100644 --- a/examples/node-upstart.conf +++ b/examples/node-upstart.conf @@ -14,7 +14,7 @@ stop on runlevel [06] # Create directories for logging and process management # Change ownership to the user running the process pre-start script - mkdir -p /var/opt/node +# mkdir -p /var/opt/node # DRY -p would create 'node', when it creates 'log' below, if either do not exist mkdir -p /var/opt/node/log mkdir -p /var/opt/node/run chown -R node:node /var/opt/node @@ -24,4 +24,4 @@ end script respawn # Start the process -exec start-stop-daemon --start --chuid node --make-pidfile --pidfile /var/opt/node/run/node-upstart.pid --exec /home/node/local/node/bin/node -- /home/node/apps/node-upstart.js >> /var/opt/node/log/node-upstart.log 2>&1 \ No newline at end of file +exec start-stop-daemon --start --chuid node --make-pidfile --pidfile /var/opt/node/run/node-upstart.pid --exec /home/node/local/node/bin/node -- /home/node/apps/node-upstart.js >> /var/opt/node/log/node-upstart.log 2>&1