Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
write daemon log header
Browse files Browse the repository at this point in the history
  • Loading branch information
codekitchen committed Dec 27, 2017
1 parent b0d851f commit 5757cc8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cli/dinghy/daemon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ def up
puts starting_message unless root?
# remove any old logfile sitting around
FileUtils.rm(daemon.output_logfile) if File.file?(daemon.output_logfile)
File.open(logfile, 'a') do |log|
log.write("=== Starting #{name} at #{Time.now.iso8601} ===\n\n")
end
start
end

Expand Down

0 comments on commit 5757cc8

Please sign in to comment.