evergreen-admin:cron_services
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
evergreen-admin:cron_services [2011/03/21 13:57] – updating the example miker | evergreen-admin:cron_services [2022/02/10 13:34] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | Like any large scale enterprise data service, not every data process happens in the clients or on the web. There are a number of tasks that are specialized and must be scheduled to run at daily, weekly or monthly intervals. | + | Like any large scale enterprise data service, not every data process happens in the clients or on the web. There are a number of tasks that are specialized and must be scheduled to run at daily, weekly or monthly intervals. |
- | # Evergreen | + | http:// |
- | # Author: Joe Atzberger, ESI\\ | + | |
- | # Author: Bill Erickson, ESI\\ | + | |
- | #\\ | + | |
- | # This is an example of a crontab | + | |
- | # in other versions of crontab, like on Solaris 8 or BSD, for example.\\ | + | |
- | #\\ | + | |
- | # While similar in structure, | + | |
- | # this is NOT an example for cron (as root). | + | |
- | # argument per line to designate the user to run as. You could\\ | + | |
- | # reasonably extrapolate the needed info from here though.\\ | + | |
- | #\\ | + | |
- | # WARNING: These jobs will do things like charge fines, send\\ | + | |
- | # potentially VERY MANY emails to patrons and even debar offending\\ | + | |
- | # users. | + | |
- | # really intend to. Make sure the relevant message templates are\\ | + | |
- | # configured to your liking before scheduling messages to be sent.\\ | + | |
- | #\\ | + | |
- | # Except where indicated, these processes only need to run\\ | + | |
- | # on 1 Evergreen server/ | + | |
- | # ENVIRONMENT:\\ | + | NOTE: The following should be added to the example crontab file: |
- | # First, establish Evergreen ENV variables.\\ | + | < |
- | #\\ | + | # Sitemap Generator - added in 2.7 |
- | OPENILS | + | # 12 2 * * * cd /openils/var/web && $EG_BIN_DIR/sitemap_generator --lib-hostname http:// |
- | SRF_CORE | + | </code> |
- | EG_BIN_DIR = /openils/bin\\ | + | |
- | # crontab format:\\ | + | There are many useful sites on the internet that extend what '' |
- | # m h dom mon dow | + | |
- | + | ||
- | # Run the hold targeter\\ | + | |
- | */15 * * * * . ~/.bashrc && $EG_BIN_DIR/ | + | |
- | + | ||
- | # Run the hold thawer\\ | + | |
- | 5 0 * * * . ~/.bashrc && $EG_BIN_DIR/ | + | |
- | + | ||
- | # Generate fines\\ | + | |
- | 30 0 * * * . ~/.bashrc && $EG_BIN_DIR/ | + | |
- | + | ||
- | # Run the reshelving completer\\ | + | |
- | 2 0 * * * . ~/.bashrc && $EG_BIN_DIR/ | + | |
- | + | ||
- | # create the list of blocked patrons for offline use\\ | + | |
- | # Note: The resulting list.txt file needs to be copied to all Apache servers\\ | + | |
- | 30 6 * * * . ~/.bashrc && $EG_BIN_DIR/ | + | |
- | + | ||
- | # Restart SIP nightly to free up any orphaned processes. \\ | + | |
- | # Note: Run on all SIP servers\\ | + | |
- | # 5 2 * * * . ~/.bashrc && oils_ctl.sh -d $OPENILS/ | + | |
- | # 8 2 * * * . ~/.bashrc && oils_ctl.sh -d $OPENILS/ | + | |
- | + | ||
- | # Action/ | + | |
- | + | ||
- | # Runs all pending A/T events every half hour\\ | + | |
- | */2 * * * * . ~/.bashrc && $EG_BIN_DIR/ | + | |
- | + | ||
- | # Passive A/T event generation.\\ | + | |
- | # Note: the --granularity flag is not supported in 1.6\\ | + | |
- | # Note: push these back to 3am so they will run after the fine generator and spread out the start minute to reduce dogpiling\\ | + | |
- | 0 * * * * . ~/.bashrc && $EG_BIN_DIR/ | + | |
- | 5 3 * * * . ~/.bashrc && $EG_BIN_DIR/ | + | |
- | 10 3 * * 1-5 . ~/.bashrc && $EG_BIN_DIR/ | + | |
- | 15 3 * * 0 . ~/.bashrc && $EG_BIN_DIR/ | + | |
- | 20 3 1 * * . ~/.bashrc && $EG_BIN_DIR/ | + | |
- | 25 3 1 1 * . ~/.bashrc && $EG_BIN_DIR/ | + | |
- | + | ||
- | # Legacy overdue/ | + | |
- | # | + | |
- | #0 3 * * * . ~/.bashrc && cd $EG_BIN_DIR && ./ | + | |
- | + | ||
- | + | ||
- | # TODO: add other entries | + | |
- | + | ||
- | There are many useful sites on the internet that extend what man teaches you about using CRON if you need it. Just search on " | + | |
evergreen-admin/cron_services.1300730241.txt.gz · Last modified: 2022/02/10 13:33 (external edit)