Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature runit for webservice #493

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

ebeckm
Copy link

@ebeckm ebeckm commented Jul 26, 2014

An example runit file for keeping a web server running. Helpful, for example, when your hosting provider periodically reboots your machine.

@bookiebot
Copy link
Contributor

test this

2 similar comments
@bookiebot
Copy link
Contributor

test this

@bookiebot
Copy link
Contributor

test this

@ebeckm
Copy link
Author

ebeckm commented Jul 26, 2014

Tested on Ubuntu 14.04

@@ -0,0 +1,2 @@
#!/bin/sh
exec chpst -u root svlogd -tt /home/bookie/Bookie/runit/paster-service/logs
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems odd that it's got a full path defined. Isn't this very not portable?

@mitechie
Copy link
Member

mitechie commented Aug 9, 2014

Thanks for this. Sorry, I've been traveling so my reply is a bit late. I think it's great to have an runit implementation there. I think it might be best to look at this as something a Makefile target could generate on the fly. In this way, you don't have to have it if you're not using runit, but when you do need it, you can generate it as required with the proper paths/etc all setup for you.

Let me know if you need a hand with any Make magic or if I'm mis-understanding how this is meant to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants