Skip to content

Commit

Permalink
Check for pid_file
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkrouper committed Dec 12, 2024
1 parent 44c651b commit 6ac1a42
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libraries/mysql_service_base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ def initialize_database
bash "#{new_resource.name} initial records" do
code init_records_script
umask '022'
returns [0, 1, 2] # facepalm
not_if { db_initialized? }
not_if { ::File.exist? pid_file }
action :run
end
end
Expand Down

0 comments on commit 6ac1a42

Please sign in to comment.