wcsinstd: use os.system to reload apache
This commit is contained in:
parent
276232022e
commit
509cf1e315
|
@ -156,14 +156,4 @@ class DeployInstance(object):
|
|||
|
||||
|
||||
def reload_apache(self):
|
||||
fd = None
|
||||
try:
|
||||
fd = os.popen('sudo -S /etc/init.d/apache2 reload', 'w')
|
||||
print >> fd, 'plop' # this is not the password
|
||||
except Exception, e:
|
||||
pass
|
||||
if fd:
|
||||
try:
|
||||
fd.close()
|
||||
except IOError:
|
||||
pass
|
||||
os.system('sudo -n /etc/init.d/apache2 reload')
|
||||
|
|
Reference in New Issue