Skip to content
This repository has been archived by the owner on May 20, 2020. It is now read-only.

log directory not created in recipes/default.rb #31

Closed
tuky opened this issue Feb 12, 2016 · 4 comments
Closed

log directory not created in recipes/default.rb #31

tuky opened this issue Feb 12, 2016 · 4 comments

Comments

@tuky
Copy link

tuky commented Feb 12, 2016

recipes/mongos.rb has these lines:

# Create the log directory
directory File.dirname(node['mongodb3']['config']['mongos']['systemLog']['path']).to_s do
  owner node['mongodb3']['user']
  action :create
  recursive true
end

recipes/default.rb does not and if the directory does not exist, the service won't start.

@sunggun-yu
Copy link
Owner

Hi,
mongo package creates default log directory. so, I wasn't assuming using different directory.
please have some wrapper for directory creation. I'll consider adding functionality as well.

Thank you.

@tuky
Copy link
Author

tuky commented Feb 14, 2016

Thank you. For now, I fell back to the default location. I think, the logs can become very large and in other cases it might be better for the logs to reside on a different location than the db data in terms of performance.

@sunggun-yu
Copy link
Owner

@tuky
Thank you. I would recommend to have some mount point for log directory. meanwhile, providing functionality is on the way.

sunggun-yu added a commit that referenced this issue Feb 15, 2016
* Creating sysLog directory for mongod
* Adding/modifying kitchen test
@sunggun-yu sunggun-yu mentioned this issue Feb 16, 2016
sunggun-yu added a commit that referenced this issue Feb 16, 2016
* Feature request #31 : Creating sysLog directory for mongod
* Fixing #30 : Changing service provider as `Chef::Provider::Service::Upstart` for ubuntu 14.04
@rveznaver
Copy link

This feature breaks syslog log configuration since you cannot use ['systemLog']['path'] with ['systemLog']['destination'] = 'syslog'.

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

3 participants