Skip to content
This repository has been archived by the owner on Dec 2, 2019. It is now read-only.

foreman export upstart tmp #57

Closed
azhang opened this issue Oct 28, 2013 · 2 comments
Closed

foreman export upstart tmp #57

azhang opened this issue Oct 28, 2013 · 2 comments

Comments

@azhang
Copy link

azhang commented Oct 28, 2013

If for some reason the server is restarted, will the upstart scripts automatically start on boot? And is there a reason why it's exported to /tmp rather than /etc/init? Thanks!

@gerhard
Copy link
Owner

gerhard commented Oct 28, 2013

The app user is not a sudoer, foreman command runs under this user (the app user has the correct env setup for foreman). launch on the other hand uses your local user ($USER) as mentioned here. So foreman exports the files to /tmp, your sudoer moves to /etc/init. Yes, the service will start automatically on boot. This is how foreman exports tasks by default:

start on runlevel [2345]

stop on runlevel [016]

@gerhard gerhard closed this as completed Oct 28, 2013
@azhang
Copy link
Author

azhang commented Oct 28, 2013

Awesome. Thanks so much for the explanation! 👍

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

No branches or pull requests

2 participants