-
Notifications
You must be signed in to change notification settings - Fork 26
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
init.d/carbon pidfile logging prevents startup in Ubuntu #3
Comments
ah - I also just noticed the change to fabfile.py in that same commit. sudo('mkdir -p /var/run/carbon') I think the problem is this is nuked on reboot due to /var/run being mounted in tmpfs This would explain the permission denied issue I think. |
Hi @neutmute Thanks for reporting this. I just pushed a small change to the init.d script for carbon. Can you try this out now and see if this works better? |
I swapped out my tweaked /init.d/carbon, put yours in and rebooted. Looks good!
|
There were also a few tweaks based on your comments into the fabfile. Once you have it installed though you only need to change the init.d script. Good to know it's working for you too. Thanks again @neutmute |
Hi there
Thanks very much for this fabric - I'm a windows dev who knows a very small amount of Linux to get by and this enabled me to get statsd/graphite going a few months ago in my dev environment.
I just built out the production server on a clean EC2 Ubuntu Server 12.04 instance and ran into a problem where carbon wasn't starting automatically on boot. The console.log showed permission denied trying to create the /var/run/carbon/carbon.pid file.
If I remove the pidfile bits from /etc/init.d/carbon that were added in this commit:
409bd88
then it starts up fine.
Just fyi - I really don't know what the pid file is for and maybe there is good reason to have it. I'm just fumbling in the dark here in Linux :)
The text was updated successfully, but these errors were encountered: