Jelajahi Sumber

force-stopping services

oroce 9 tahun lalu
induk
melakukan
4487a9270d
1 mengubah file dengan 6 tambahan dan 1 penghapusan
  1. 6 1
      lib/tasks/production.rake

+ 6 - 1
lib/tasks/production.rake

@@ -38,6 +38,11 @@ namespace :production do
     run_sv('start')
   end
 
+  task :force_stop => :check do
+    puts "Force stopping huginn ..."
+    run_sv('force-stop')
+  end
+
   task :status => :check do
     run_sv('status')
   end
@@ -91,4 +96,4 @@ rescue StandardError => e
   raise e
 else
   puts output
-end
+end