Check-in [94156c76b2]
Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Move pids up to install root to prevent "folder *not* empty" problem |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
94156c76b2bd123dd878c2043a61e991 |
User & Date: | chris.gerber@tapjoy.com 2014-03-19 19:14:50 |
Context
2014-03-26
| ||
04:58 | Merge pull request #651 from gerbercj/feature/sh_package Add a self-extracting sh package type implementation check-in: 6a2f8e44fa user: jls@semicomplete.com tags: trunk | |
2014-03-19
| ||
19:14 | Move pids up to install root to prevent "folder *not* empty" problem check-in: 94156c76b2 user: chris.gerber@tapjoy.com tags: trunk | |
2014-03-11
| ||
04:40 | Only set RELEASE_ID if it is passed in as a template variable check-in: bca122a1a4 user: chris.gerber@tapjoy.com tags: trunk | |
Changes
Changes to templates/sh.erb.
︙ | ︙ | |||
46 47 48 49 50 51 52 | log "Installation complete." fi fi } # deletes the PID file for this installation function delete_pid(){ | | | | | | 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | log "Installation complete." fi fi } # deletes the PID file for this installation function delete_pid(){ rm -f ${INSTALL_ROOT}/$$.pid 2> /dev/null } # creates a PID file for this installation function create_pid(){ trap "delete_pid" EXIT echo $$> ${INSTALL_ROOT}/$$.pid } # checks for other PID files and sleeps for a grace period if found function wait_for_others(){ local count=`ls ${INSTALL_ROOT}/*.pid | wc -l` if [ $count -gt 1 ] ; then sleep 10 fi } # kills other running installations function kill_others(){ for PID_FILE in $(ls ${INSTALL_ROOT}/*.pid) ; do local p=`cat ${PID_FILE}` if ! [ $p == $$ ] ; then kill -9 $p rm -f $PID_FILE 2> /dev/null fi done } |
︙ | ︙ |