bin/flapper in flapjack-0.6.54 vs bin/flapper in flapjack-0.6.55
- old
+ new
@@ -93,10 +93,11 @@
case ARGV[0]
when "start"
if runner.daemon_running?
puts "#{exe} is already running."
+ exit 1
else
print "#{exe} starting..."
runner.execute(:daemonize => daemonize) {
main
}
@@ -108,10 +109,11 @@
print "#{exe} stopping..."
runner.execute(:kill => true)
puts " done."
else
puts "#{exe} is not running."
+ exit 1
end
when "restart"
print "#{exe} restarting..."
runner.execute(:daemonize => true, :restart => true) {
@@ -131,7 +133,8 @@
if ARGV.nil? || ARGV.empty?
puts "No command provided"
else
puts "Unknown command provided: '#{ARGV[0]}'"
end
+ exit 1
end