Turning two SSH piped commands into a single one.
authorBryan <btbonval@gmail.com>
Fri, 27 Dec 2013 05:54:49 +0000 (00:54 -0500)
committerBryan <btbonval@gmail.com>
Fri, 27 Dec 2013 05:54:49 +0000 (00:54 -0500)
fabfile.py

index 6cc63738bcb7eeb3e372040d14846e6914bf5c1e..a664ed40baf685e5579a252276c07408fe3a8842 100644 (file)
@@ -121,8 +121,8 @@ def restart_supervisord():
     """
     Restarts supervisord, also making sure to load in new config data.
     """
-    virtenv_exec('supervisorctl -c {0} update'.format(env.supervisor_conf))
-    virtenv_exec('supervisorctl -c {0} restart all'.format(env.supervisor_conf))
+    virtenv_exec('supervisorctl -c {0} update; supervisorctl -c {0} restart all
+'.format(env.supervisor_conf))
 
 
 def supervisorctl(action, process):