chef-boneyard / push-jobs-cookbook

Development repository for Chef Cookbook push-jobs
https://supermarket.chef.io/cookbooks/push-jobs
Apache License 2.0
21 stars 43 forks source link

After upgrading to 3.2, logs no longer show up at /var/log/push-jobs-client/current #94

Closed gliptak closed 8 years ago

gliptak commented 8 years ago

Cookbook version

``` 3.2

Chef-client version

Chef: 12.10.24

Platform Details

Oracle Linux Server release 7.1

Scenario:

After upgrading to 3.2, logs no longer show up at /var/log/push-jobs-client/current.

Steps to Reproduce:

Expected Result:

Log file available.

Actual Result:

No log file.

gliptak commented 8 years ago

Based on https://github.com/chef-cookbooks/push-jobs/pull/87, now the service is configured using systemd

tas50 commented 8 years ago

Your logs are now going to use journald as the service is running via the native systemd init provider

gliptak commented 8 years ago

@tas50 Thank you for the pointer. The journald logs do not contain output from the command ran (like chef-client), which was the default behaviour in the previous versions. Thanks

gliptak commented 8 years ago

The workaround we found is to redirect the chef-client logs into a separate file. Modify /etc/chef/client.rb:

#Add below line to change log level and location 
log_level                     :info
log_location    "/var/log/chef.log"