Commits

Mikhail Korobov  committed ada7d1e

apache restart fix for ubuntu 10.04. Fix #19.

  • Participants
  • Parent commits 61ea887

Comments (0)

Files changed (1)

File fab_deploy/apache.py

 def apache_restart():
     """ Restarts apache using init.d script. """
     # restart is not used because it can leak memory in some cases
-    sudo('invoke-rc.d apache2 stop')
-    sudo('invoke-rc.d apache2 start')
+    # without pty=False restart silently fails on Ubuntu 10.04.
+    sudo('invoke-rc.d apache2 stop', pty=False)
+    sudo('invoke-rc.d apache2 start', pty=False)
 
 # ==== installation ===