LP#1672775 Action/Trigger CRON-able purge script
authorBill Erickson <berickxx@gmail.com>
Thu, 16 Mar 2017 15:46:06 +0000 (11:46 -0400)
committerBill Erickson <berickxx@gmail.com>
Fri, 26 May 2017 16:04:26 +0000 (12:04 -0400)
Installs a new purge_at_events.sh script into the Evergreen bin
directory.  Invoked at regular intervals to remove expired events.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/Makefile.am
Open-ILS/src/support-scripts/purge_at_events.srfsh [new file with mode: 0755]

index 09a6439..253e8ab 100644 (file)
@@ -67,6 +67,7 @@ core_scripts =   $(examples)/oils_ctl.sh \
                 $(supportscr)/juv_to_adult.srfsh \
                 $(supportscr)/thaw_expired_frozen_holds.srfsh \
                 $(supportscr)/long-overdue-status-update.pl \
+                $(supportscr)/purge_at_events.srfsh \
                 $(supportscr)/purge_holds.srfsh \
                 $(supportscr)/purge_circulations.srfsh \
                 $(supportscr)/purge_pending_users.srfsh \
diff --git a/Open-ILS/src/support-scripts/purge_at_events.srfsh b/Open-ILS/src/support-scripts/purge_at_events.srfsh
new file mode 100755 (executable)
index 0000000..f14b287
--- /dev/null
@@ -0,0 +1,7 @@
+#!/openils/bin/srfsh
+open open-ils.cstore
+request open-ils.cstore open-ils.cstore.transaction.begin
+request open-ils.cstore open-ils.cstore.json_query {"from":["action_trigger.purge_events"]}
+request open-ils.cstore open-ils.cstore.transaction.commit
+close open-ils.cstore
+