lib/splash/cli/daemon.rb in prometheus-splash-0.2.0 vs lib/splash/cli/daemon.rb in prometheus-splash-0.3.0

- old
+ new

@@ -6,17 +6,17 @@ include Splash::Transports include Splash::Exiter option :foreground, :type => :boolean - option :purge, :type => :boolean + option :purge, :type => :boolean, default: true option :scheduling, :type => :boolean, default: true long_desc <<-LONGDESC Starting Splash Daemon\n With --foreground, run Splash in foreground\n With --no-scheduling, inhibit commands scheduling\n - With --purge, Purge Input Queue for Splash Daemon + With --no-purge, inhibit purge Input Queue for Splash Daemon LONGDESC desc "start", "Starting Splash Daemon" def start if options[:purge] then transport = get_default_client @@ -24,10 +24,9 @@ splash_exit transport else queue = "splash.#{Socket.gethostname}.input" transport.purge queue: queue puts " * Queue : #{queue} purged" - splash_exit case: :quiet_exit end end acase = run_as_root :startdaemon, options splash_exit acase end