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

    
https://github.com/apache/incubator-predictionio/pull/269#discussion_r73793055
  
    --- Diff: bin/pio-stop-all ---
    @@ -43,3 +43,18 @@ if [ -e ${PIDFILE} ]; then
       cat ${PIDFILE} | xargs kill
       rm ${PIDFILE}
     fi
    +
    +#PGSQL
    +OS=`uname`
    +if [[ "$OS" = "Darwin" ]]; then
    +  pg_cmd=`which pg_ctl`
    +  if [[ "$pg_cmd" != "" ]]; then
    +    pg_ctl -D /usr/local/var/postgres stop -s -m fast
    +  fi
    +elif [[ "$OS" = "Linux" ]]; then
    +  sudo service postgresql stop
    +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 shutdown!\033[0m"
    +  exit 1
    +fi
    --- End diff --
    
    ready for review
    
    This allows the command to stop DBs and Elasticsearch, if ES 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