X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fcron.dinstall;h=8aaaa648c4939d4479d4fdbc400df08876011a75;hb=f54c87736c85e9c72b1693f9db50848992f88f61;hp=3d573b5bead39a010c1378bb5e75492be31b5656;hpb=0562b43d8a0722f28e7e8ef18f7492fbdebe125a;p=dak.git diff --git a/config/debian/cron.dinstall b/config/debian/cron.dinstall index 3d573b5b..8aaaa648 100755 --- a/config/debian/cron.dinstall +++ b/config/debian/cron.dinstall @@ -74,6 +74,8 @@ function stage() { error=${ERR:-"true"} ARGS=${ARGS:-""} + + log "########## DINSTALL BEGIN: ${FUNC} ${ARGS} ##########" STAGEFILE="${stagedir}/${FUNC}_${ARGS}" STAGEFILE=${STAGEFILE// /_} if [ -f "${STAGEFILE}" ]; then @@ -132,6 +134,8 @@ function stage() { cat "${STAGEFILE}.log" >> "${LOGFILE}" rm -f "${STAGEFILE}.log" + echo "########## DINSTALL END: ${FUNC} ##########" + if [ -f "${LOCK_STOP}" ]; then log "${LOCK_STOP} exists, exiting immediately" exit 42 @@ -206,6 +210,14 @@ GO=( ) stage $GO +GO=( + FUNC="dep11" + TIME="dep11 1" + ARGS="" + ERR="false" +) +stage $GO + lockfile "$LOCK_ACCEPTED" trap remove_all_locks EXIT TERM HUP INT QUIT