Advertisement
Guest User

Untitled

a guest
Feb 12th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #/etc/init/ghost.conf
  2. description "Ghost Blog"
  3. author "Your Name"
  4. # Start the service after everything loaded
  5. start on (local-filesystems and net-device-up IFACE=eth0)
  6. stop on shutdown
  7. # Automatically restart service
  8. respawn
  9. respawn limit 99 5
  10. script
  11. # Navigate to your app directory
  12. cd /var/www/ghost/
  13.  
  14. # Run the script with Node.js and output to a log
  15. su ghost -c "/usr/local/bin/npm start --production" 2>&1 >> /var/log/ghost.log
  16. end script
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement