Guest User

Untitled

a guest
Jul 18th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. RUBY/LINUX HELP NEEDED:
  2.  
  3. so here's the task at hand:
  4. ========
  5.  
  6. i have
  7. a) an nginx server
  8. b) on there: a special version of jekyll
  9. c) a dropbox synced folder with markdown files
  10.  
  11. i need
  12. a) jekyll ran as an upstart service or similar that keeps it up
  13. b) possibility to read the log/stdout from jekyll from a ruby app, since i need to be able to send feedback errors to a user interface..
  14.  
  15. the problem:
  16. • The server is running ubuntu 11.04 and upstart 0.97 (i think)
  17. • Upstart is not upgradable through apt-get to a newer version that allows non-root users to start services,
  18. i would rather not upgrade upstart manually
  19. • Ruby and the gems are installed to a non-root user through rvm
  20. • I can't reach the gems and execute them from the upstart service, they are not even visible with sudo -u rubyuser
  21.  
  22. Any tips or ideas on how to run jekyll as a stable, re-spawning service under these conditions?
Add Comment
Please, Sign In to add comment