Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/node-upstart.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
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