lib/scout/daemon_spawn.rb in scout-5.4.5.alpha vs lib/scout/daemon_spawn.rb in scout-5.4.5.1.alpha
- old
+ new
@@ -50,10 +50,10 @@
STDOUT.reopen log
STDERR.reopen STDOUT
trap("TERM") {daemon.stop; exit}
daemon.start(args)
end
- puts "#{daemon.app_name} started."
+ puts("#{daemon.app_name} started.") if $stdin.tty?
end
def self.stop(daemon) #:nodoc:
if pid = daemon.pid
FileUtils.rm(daemon.pid_file)