Example #1
0
 def restart(self):
   run_local('kill -HUP $( cat /var/run/nginx.pid )')
Example #2
0
 def _revert(self, config_dest):
   backup_path = self._build_backup_path(config_dest)
   if os.path.isfile(backup_path):
     run_local('mv {0} {1}'.format(backup_path,
                                   config_dest))
Example #3
0
 def restart(self):
   run_local('kill -HUP $( cat {0} )'.format(self._nginx_pid_path))
Example #4
0
 def _backup(self, config_dest):
   if os.path.isfile(config_dest):
     backup_path = self._build_backup_path(config_dest)
     run_local('mv {0} {1}'.format(config_dest, backup_path))
Example #5
0
 def restart(self):
     run_local('kill -HUP $( cat {0} )'.format(self._nginx_pid_path))