We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following fails after a restart because pid isn't cleaned up correctly on box shut down.
https://github.com/nitrous-io/autoparts/blob/master/lib/autoparts/packages/apache2.rb#L85
def running? pid = Path.var + name + "run" + "httpd.pid" pid.exist? end
Do something like this instead:
https://github.com/nitrous-io/autoparts/blob/master/lib/autoparts/packages/mongodb.rb#L84
def running? if mongod_pid_file_path.exist? pid = File.read(mongod_pid_file_path).strip if pid.length > 0 && `ps -o cmd= #{pid}`.include?(mongod_path.basename.to_s) return true end end false end
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The following fails after a restart because pid isn't cleaned up correctly on box shut down.
https://github.com/nitrous-io/autoparts/blob/master/lib/autoparts/packages/apache2.rb#L85
Do something like this instead:
https://github.com/nitrous-io/autoparts/blob/master/lib/autoparts/packages/mongodb.rb#L84
The text was updated successfully, but these errors were encountered: