def ensure_app_is_not_running():
 logging.info('Ensure AppScale is not currently running...')
 appscale_running = (subprocess.call(['service', CONTROLLER_SERVICE, 'status']) == 0)
 if appscale_running:
  logging.info('AppScale is running, please shut it down and try again.')
  sys.exit(1)

def ensure_app_is_not_running ( ) : logging . info ( 'Ensure AppScale is not currently running...' ) appscale_running = ( subprocess . call ( [ 'service' , CONTROLLER_SERVICE , 'status' ] ) == 0 ) if appscale_running : logging . info ( 'AppScale is running, please shut it down and try again.' ) sys . exit ( 1 )
ensures appscale is not running as this is an offline script .