NWS Glue
Glue scripts intended for use within LDM networks using CSPP-GEO software.
ABI
- Copy sample environment script as
machine-env.sh(arbitrary name). - 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).
- Edit environment settings to suit system.
- If using pqinsert with non-ldm user account, set write permission for ldm.pq (e.g.
setfacl -m u:user:rw ldm.pqas ldm user whenever queue is recreated. untested: may also work to do one-timesetfacl -d -m u:user:rw $(dirname /path/to/ldm.pq)) - Run
crontab -eand add entry*/5 * * * * /path/to/abi-start.sh /path/to/machine-env.sh - Set up daily logrotate on log/ directory using crontab.
- Set up tmpwatch of product directory where output is being accumulated.
- Confirm sessions are running with
screen -lsandtail -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.