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 [2014/09/26 09:39] – Moved example cron data to a code block so copy and paste works correctly stompro | 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. |
+ | http:// | ||
+ | |||
+ | NOTE: The following should be added to the example crontab file: | ||
< | < | ||
- | # Evergreen crontab.example | + | # Sitemap Generator - added in 2.7 |
- | # Author: Joe Atzberger, ESI | + | # 12 2 * * * cd /openils/var/web && $EG_BIN_DIR/ |
- | # Author: Bill Erickson, ESI | + | |
- | # | + | |
- | # This is an example of a crontab file for Debian. | + | |
- | # 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: | + | |
- | # First, establish Evergreen ENV variables. | + | |
- | # | + | |
- | OPENILS | + | |
- | SRF_CORE | + | |
- | EG_BIN_DIR = / | + | |
- | + | ||
- | # crontab format: | + | |
- | # 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 | + | |
- | + | ||
- | # 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 | + | |
- | */30 * * * * . ~/ | + | |
- | + | ||
- | # 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/action_trigger_runner.pl --osrf-config $SRF_CORE --process-hooks --granularity hourly | + | |
- | 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 " | + | There are many useful sites on the internet that extend what '' |
evergreen-admin/cron_services.1411738793.txt.gz · Last modified: 2022/02/10 13:33 (external edit)