Skip to content
Snippets Groups Projects
Select Git revision
  • 4-allow-user-to-disable-suvi-fits-or-scmi-production-using-configuration-variables
  • master default protected
  • feature-axi-pqinsert
  • feature-deliver_hcast
  • douglas_dev
  • feature-hcast-setup
  • cspp-geo-automation-dev
  • fix-r8-default-python
  • feat-atomic-fits
  • 7-handle-g18-input-data
  • 7-handle-g18-input-data-2
  • develop
  • 6-remove-need-for-usr1-signal-from-logrotate-for-demod_csv_monitor
  • 3-use-ldmadmin-isrunning
  • 3-await-ldm
  • 2-default-to-pqinsert-i
  • feature-allow-full-paths-pqinsert
  • feature-default-full-paths
  • 1-support-full-paths-for-pqinsert-to-ldm
  • axi
20 results

nws_glue

NWS Glue

Glue scripts intended for use within LDM networks using CSPP-GEO software.

ABI

  1. Copy sample environment script as machine-env.sh (arbitrary name).
  2. Create a log/ and a lock/ directory to prevent process duplication and allow full timestamped logging (matching CSPP_LOCK_DIR and *_LOG settings in machine-env.sh).
  3. Edit environment settings to suit system.
  4. If using pqinsert with non-ldm user account, set write permission for ldm.pq (e.g. setfacl -m u:user:rw ldm.pq as ldm user whenever queue is recreated. untested: may also work to do one-time setfacl -d -m u:user:rw $(dirname /path/to/ldm.pq))
  5. Run crontab -e and add entry */5 * * * * /path/to/abi-start.sh /path/to/machine-env.sh
  6. Set up daily logrotate on log/ directory using crontab.
  7. Set up tmpwatch of product directory where output is being accumulated.
  8. Confirm sessions are running with screen -ls and tail -f $CSPP_LOG_DIR/*.log.

A sample logrotate.conf:

/data/user/log/*.log {
         daily
         copytruncate
         dateext
         rotate 7
         compress
}

Crontab entries example:

*/5 * * * /data/user/bin/abi/abi-start.sh /data/user/etc/machine-env.sh
0 * * * * /usr/bin/tmpwatch -m 4 /data/user/grb_products/product
0 0 * * * /usr/sbin/logrotate -s /data/user/log/.logrotate.status /data/user/log/logrotate.conf

This will start up screen sessions named with time-stamps, which can be listed with screen -ls:

  • suvide (SUVI nc to fits converter)
  • grb2scmi-xCONUS
  • grb2scmi-xFD
  • grb2scmi-xMESO1
  • grb2scmi-xMESO2
  • nc_fits_pqinsert

You also may want to set $HOME/.forward to a notification email address, which will receive mail if/when abi-start.sh does anything.