                       (comp/svg icon/edit))})
       (comp/card-content
         {:key "ssccd"}
-        (rum/with-key (form-replicas tasks) "ssccdd")
+        (if (not (empty? desired-tasks))
+          (rum/with-key (form-replicas desired-tasks) "ssccddr")
+          (html
+            [:span {:class "Swarmpit-message"
+                    :key   "ssccddm"}
+             (icon/info {:style {:marginRight "8px"}})
+             [:span "Service has been shut down."]]))
         (form-command command))
       (comp/card-content
         {:key "ssccl"}

  (let [image-digest (get-in service [:repository :imageDigest])
        image (get-in service [:repository :image])
        resources (:resources service)
        command (:command service)
        stack (:stack service)
        mode (:mode service)]

                  (into []))]
    (chart/pie
      data
      (str (count tasks) " " (inflect/pluralize-noun (count tasks) "replica"))
      "Swarmpit-service-replicas-graph"
      "replicas-pie"
      {:formatter (fn [value name props]
