 	(toxic:start-master)))))
 
 
+(defun toxic:start-output ()
+  "Starts a toxicbuild output instance in the test env"
+
+  (interactive)
+
+  (defvar toxic:--output-path nil)
+  (setq toxic:--output-path (concat toxic:test-env-path "output/"))
+  (defvar toxic:--start-output-cmd
+    (format "%s %stoxicoutput start %s --loglevel=debug"
+	    toxic:py-venv-exec toxic:test-env-dir toxic:--output-path))
+
+  (defvar toxic:--output-buffer-name "toxicoutput")
+
+  (toxic:--run-in-env-on-test-dir
+   toxic:--start-output-cmd toxic:--output-buffer-name))
+
+
+(defun toxic:stop-output ()
+  "Stops the toxicoutput test instance"
+
+  (interactive)
+
+  (toxic:--kill-buffer-shell-process toxic:--output-buffer-name))
+
+
+(defun toxic:restart-output ()
+  "Restarts the toxicoutput test instance"
+
+  (interactive)
+
+  (deferred:$
+    (deferred:next
+      (lambda ()
+	(toxic:stop-output)))
+
+    (deferred:nextc it
+      (lambda ()
+	(toxic:start-output)))))
+
+
 (defun toxic:start-integrations ()
   "Starts a toxicbuild integrations instance in the test env"
 

    (format "ln -s %sscripts/toxicintegrations %stoxicintegrations"
	    pdj:project-directory toxic:test-env-dir))

  (setq toxic:--ln-toxicweb
    (format "ln -s %sscripts/toxicweb %stoxicweb"
	    pdj:project-directory toxic:test-env-dir))

  (toxic:restart-poller)
  (toxic:restart-scheduler)
  (toxic:restart-integrations)
  (toxic:restart-output)
  (toxic:restart-webui))


