ariatosca-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tliron <...@git.apache.org>
Subject [GitHub] incubator-ariatosca pull request #188: ARIA-324 Refactor ctx proxy access
Date Mon, 07 Aug 2017 15:57:22 GMT
Github user tliron commented on a diff in the pull request:

    https://github.com/apache/incubator-ariatosca/pull/188#discussion_r131693585
  
    --- Diff: examples/hello-world/scripts/stop.sh ---
    @@ -16,14 +16,13 @@
     
     set -e
     
    -TEMP_DIR="/tmp"
    -PYTHON_FILE_SERVER_ROOT=${TEMP_DIR}/python-simple-http-webserver
    -PID_FILE="server.pid"
    +TEMP_DIR=/tmp
    +PYTHON_FILE_SERVER_ROOT="${TEMP_DIR}/python-simple-http-webserver"
    +PID_FILE=server.pid
    +PID=$(cat "$PYTHON_FILE_SERVER_ROOT/$PID_FILE")
     
    -PID=`cat ${PYTHON_FILE_SERVER_ROOT}/${PID_FILE}`
    +ctx logger info [ "Shutting down web server, pid = ${PID}." ]
    +kill -9 "$PID" || exit $?
     
    -ctx logger info "Shutting down web server, pid = ${PID}."
    -kill -9 ${PID} || exit $?
    -
    -ctx logger info "Removing web server root folder: ${PYTHON_FILE_SERVER_ROOT}."
    -rm -rf ${PYTHON_FILE_SERVER_ROOT}
    +ctx logger info [ "Removing web server root folder: $PYTHON_FILE_SERVER_ROOT." ]
    --- End diff --
    
    Heh, not 100% sure I agree with that, but it does look clear. :)


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message