Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #/etc/init/ghost.conf
- description "Ghost Blog"
- author "Your Name"
- # Start the service after everything loaded
- start on (local-filesystems and net-device-up IFACE=eth0)
- stop on shutdown
- # Automatically restart service
- respawn
- respawn limit 99 5
- script
- # Navigate to your app directory
- cd /var/www/ghost/
- # Run the script with Node.js and output to a log
- su ghost -c "/usr/local/bin/npm start --production" 2>&1 >> /var/log/ghost.log
- end script
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement