[open-ils-commits] [GIT] Evergreen ILS branch rel_2_7 updated. 6f297addfb7089879ea30340c1662eea4699cca0
Evergreen Git
git at git.evergreen-ils.org
Tue Mar 24 13:36:45 EDT 2015
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, rel_2_7 has been updated
via 6f297addfb7089879ea30340c1662eea4699cca0 (commit)
from 733040f9f4593807b4f8eff0a21a7fb0496251e9 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 6f297addfb7089879ea30340c1662eea4699cca0
Author: Jason Stephenson <jstephenson at mvlc.org>
Date: Tue Mar 24 12:49:39 2015 -0400
LP 1435966: Clark Kent should write lock file after it forks.
Rearrange the code in clark-kent.pl so that the lock/pid file is
opened and written to after the reporter daemonizes itself. This
way, the pid in the file can actually be used to stop the running
reporter daemon.
Signed-off-by: Jason Stephenson <jstephenson at mvlc.org>
Signed-off-by: Galen Charlton <gmc at esilibrary.com>
diff --git a/Open-ILS/src/reporter/clark-kent.pl b/Open-ILS/src/reporter/clark-kent.pl
index 2e9bbd9..8893fc5 100755
--- a/Open-ILS/src/reporter/clark-kent.pl
+++ b/Open-ILS/src/reporter/clark-kent.pl
@@ -91,10 +91,10 @@ my $data_dsn = "dbi:" . $data_db{db_driver} . ":dbname=" . $data_db{db_name}
my ($dbh,$running,$sth, at reports,$run, $current_time);
if ($daemon) {
+ daemonize("Clark Kent, waiting for trouble");
open(F, ">$lockfile") or die "Cannot write lockfile '$lockfile'";
print F $$;
close F;
- daemonize("Clark Kent, waiting for trouble");
}
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/src/reporter/clark-kent.pl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list