Github user pferrel commented on a diff in the pull request:

    
https://github.com/apache/incubator-predictionio/pull/269#discussion_r73793051
  
    --- Diff: bin/pio-start-all ---
    @@ -57,6 +57,26 @@ else
       exit 1
     fi
     
    +#PGSQL
    +pgsqlStatus="$(ps auxwww | grep postgres | wc -l)"
    +if [[ "$pgsqlStatus" < 5 ]]; then
    +  # Detect OS
    +  OS=`uname`
    +  if [[ "$OS" = "Darwin" ]]; then
    +    pg_cmd=`which pg_ctl`
    +    if [[ "$pg_cmd" != "" ]]; then
    +      pg_ctl -D /usr/local/var/postgres -l 
/usr/local/var/postgres/server.log start
    +    fi
    +  elif [[ "$OS" = "Linux" ]]; then
    +    sudo service postgresql start
    +  else
    +    echo -e "\033[1;31mYour OS $OS is not yet supported for automatic 
postgresql startup:(\033[0m"
    +    echo -e "\033[1;31mPlease do a manual startup!\033[0m"
    +    ${PIO_HOME}/bin/pio-stop-all
    +    exit 1
    +  fi
    +fi
    +
     # PredictionIO Event Server
     echo "Waiting 10 seconds for HBase to fully initialize..."
     sleep 10
    --- End diff --
    
    ready for review
    
    This allows the command to start DBs and Elasticsearch, if it was installed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to