bin/flapjack in flapjack-0.6.54 vs bin/flapjack in flapjack-0.6.55
- old
+ new
@@ -80,10 +80,11 @@
runner = Dante::Runner.new('flapjack', :pid_path => pidfile,
:log_path => logfile)
if runner.daemon_running?
puts "Flapjack is already running."
+ exit 1
else
print "Flapjack starting..."
runner.execute(:daemonize => daemonize) {
flapjack_coord.call
}
@@ -98,10 +99,11 @@
print "Flapjack stopping..."
runner.execute(:kill => true)
puts " done."
else
puts "Flapjack is not running."
+ exit 1
end
when "restart"
runner = Dante::Runner.new('flapjack', :pid_path => pidfile,
:log_path => logfile)
@@ -126,10 +128,11 @@
rescue => e
puts " couldn't send HUP to pid '#{pid}'."
end
else
puts "Flapjack is not running daemonized."
+ exit 1
end
when "status"
runner = Dante::Runner.new('flapjack', :pid_path => pidfile, :log_path => logfile)
@@ -144,7 +147,8 @@
if ARGV.nil? || ARGV.empty?
puts "No command provided"
else
puts "Unknown command provided: '#{ARGV[0]}'"
end
+ exit 1
end