[Opensrf-commits] r1982 - in trunk: . bin (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Jul 13 02:10:52 EDT 2010


Author: dbs
Date: 2010-07-13 02:10:48 -0400 (Tue, 13 Jul 2010)
New Revision: 1982

Modified:
   trunk/bin/opensrf-perl.pl.in
   trunk/configure.ac
Log:
Teach opensrf-perl.pl the same PID directory as osrf_ctl.sh

This should cut down on one more command-line option when working
with individual Perl services.


Modified: trunk/bin/opensrf-perl.pl.in
===================================================================
--- trunk/bin/opensrf-perl.pl.in	2010-07-13 06:09:14 UTC (rev 1981)
+++ trunk/bin/opensrf-perl.pl.in	2010-07-13 06:10:48 UTC (rev 1982)
@@ -28,7 +28,7 @@
 my $opt_action = undef;
 my $opt_service = undef;
 my $opt_config = "@CONF_DIR@/opensrf_core.xml";
-my $opt_pid_dir = "@TMP@";
+my $opt_pid_dir = "@PID_DIR@/run/opensrf";
 my $opt_no_daemon = 0;
 my $opt_settings_pause = 0;
 my $opt_localhost = 0;

Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac	2010-07-13 06:09:14 UTC (rev 1981)
+++ trunk/configure.ac	2010-07-13 06:10:48 UTC (rev 1982)
@@ -36,7 +36,9 @@
 
 # Perl and Python scripts don't want ${prefix} if no value was specified
 eval "eval CONF_DIR=$sysconfdir"
+eval "eval PID_DIR=$localstatedir"
 AC_SUBST([CONF_DIR])
+AC_SUBST([PID_DIR])
 
 AC_SUBST(prefix)
 AC_SUBST(bindir)



More information about the opensrf-commits mailing list