Skip to content

Commit

Permalink
Merge pull request #200 from opscode/ssd/OC-10648
Browse files Browse the repository at this point in the history
[OC-10648] Fix check for disabled services in 008-fix-logging migration
  • Loading branch information
schisamo committed Dec 4, 2013
2 parents 6a5d77c + a51de07 commit cb96671
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/private-chef-upgrades/001/008_fix_logging.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
run_command("chown opscode:opscode /var/log/opscode/#{service}/*")

# There could be leftover logs for a service we don't use anymore...
# (e.g. authz). So check the service is defined before restartint it.
if File.exist?("/opt/opscode/sv/#{service}")
# (e.g. authz). So check the service is defined before restarting it.
if File.exist?("/opt/opscode/service/#{service}")
# force svlogd process to reload
run_command("/opt/opscode/embedded/bin/sv force-restart /opt/opscode/sv/#{service}/log")
end
Expand Down

0 comments on commit cb96671

Please sign in to comment.