Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/src/modules/citrix/storefront-cron.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2696 by niro, Thu Oct 8 10:23:23 2015 UTC revision 2697 by niro, Wed Dec 16 13:50:20 2015 UTC
# Line 16  source ${MCORE_LIBDIR}/include/mysqlfunc Line 16  source ${MCORE_LIBDIR}/include/mysqlfunc
16    
17  export IMPORTED_IDS=""  export IMPORTED_IDS=""
18    
19    LOCKFILE="@@RUNDIR@@/lock/storefront-cron.lock"
20    
21  is_not_an_import_id()  is_not_an_import_id()
22  {  {
23   local id="$1"   local id="$1"
# Line 32  is_not_an_import_id() Line 34  is_not_an_import_id()
34   return 0   return 0
35  }  }
36    
37    # the lockfile is not meant to be perfect, it's just in case the
38    # two cron scripts get run close to each other to keep
39    # them from stepping on each other's toes.
40    [[ -f ${LOCKFILE} ]] && exit 0
41    
42    trap "{ rm -f ${LOCKFILE}; exit 0; }" EXIT
43    touch ${LOCKFILE}
44    
45  # get default settings from configs  # get default settings from configs
46  [[ -z ${STOREFRONT_STORE} ]] && export STOREFRONT_STORE="${DEFAULT_STOREFRONT_STORE}"  [[ -z ${STOREFRONT_STORE} ]] && export STOREFRONT_STORE="${DEFAULT_STOREFRONT_STORE}"
47  [[ -z ${STOREFRONT_USER} ]] && export STOREFRONT_USER="${MCORE_STOREFRONT_USER}"  [[ -z ${STOREFRONT_USER} ]] && export STOREFRONT_USER="${MCORE_STOREFRONT_USER}"
# Line 112  EOF Line 122  EOF
122   fi   fi
123   done   done
124  fi  fi
125    
126    exit 0

Legend:
Removed from v.2696  
changed lines
  Added in v.2697