From dc40c1c748cfbb0c4b14d94b5fe72825cb110a08 Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Mon, 1 Apr 2013 16:59:59 -0400 Subject: [PATCH] Add a purge_holds.srfsh script so it can be run from cron. Signed-off-by: Jason Stephenson Signed-off-by: Dan Wells --- Open-ILS/src/Makefile.am | 1 + Open-ILS/src/support-scripts/purge_holds.srfsh | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100755 Open-ILS/src/support-scripts/purge_holds.srfsh diff --git a/Open-ILS/src/Makefile.am b/Open-ILS/src/Makefile.am index 0363c4bea4..d96d1bd2e7 100644 --- a/Open-ILS/src/Makefile.am +++ b/Open-ILS/src/Makefile.am @@ -72,6 +72,7 @@ core_scripts = $(examples)/oils_ctl.sh \ $(supportscr)/thaw_expired_frozen_holds.srfsh \ $(supportscr)/long-overdue-status-update.pl \ $(supportscr)/action_trigger_runner.pl \ + $(supportscr)/purge_holds.srfsh \ $(srcdir)/extras/eg_config \ $(srcdir)/extras/openurl_map.pl \ $(srcdir)/extras/import/marc_add_ids diff --git a/Open-ILS/src/support-scripts/purge_holds.srfsh b/Open-ILS/src/support-scripts/purge_holds.srfsh new file mode 100755 index 0000000000..bce78e255e --- /dev/null +++ b/Open-ILS/src/support-scripts/purge_holds.srfsh @@ -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.purge_holds"]} +request open-ils.cstore open-ils.cstore.transaction.commit +close open-ils.cstore + -- 2.43.2