Use autotools to set the default values in opensrf-perl.pl to what was passed in...
authordbs <dbs@9efc2488-bf62-4759-914b-345cdb29e865>
Sun, 31 May 2009 20:21:53 +0000 (20:21 +0000)
committerdbs <dbs@9efc2488-bf62-4759-914b-345cdb29e865>
Sun, 31 May 2009 20:21:53 +0000 (20:21 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1709 9efc2488-bf62-4759-914b-345cdb29e865

bin/opensrf-perl.pl.in [moved from bin/opensrf-perl.pl with 97% similarity]
configure.ac

similarity index 97%
rename from bin/opensrf-perl.pl
rename to bin/opensrf-perl.pl.in
index cf84b85..3ca98b1 100755 (executable)
@@ -27,8 +27,8 @@ use OpenSRF::Utils::Config;
 
 my $opt_action = undef;
 my $opt_service = undef;
-my $opt_config = undef;
-my $opt_pid_dir = '/tmp';
+my $opt_config = "@sysconfdir@/opensrf_core.xml";
+my $opt_pid_dir = "@TMP@";
 my $opt_no_daemon = 0;
 my $opt_settings_pause = 0;
 my $opt_help = 0;
@@ -209,7 +209,7 @@ sub msg {
 sub do_help {
     print <<HELP;
 
-    Usage: perl $0 --pid_dir /var/run/opensrf --config /etc/opensrf/opensrf_core.xml --service opensrf.settings --action start
+    Usage: perl $0 --pid_dir @TMP@ --config @sysconfdir@/opensrf_core.xml --service opensrf.settings --action start
 
     --action <action>
         Actions include start, stop, restart, and start_all, stop_all, and restart_all
index a12e22e..cc9d705 100644 (file)
@@ -263,6 +263,7 @@ AC_CONFIG_FILES([Makefile
                  src/python/Makefile
                  src/router/Makefile
                  src/srfsh/Makefile
+                 bin/opensrf-perl.pl
                  bin/osrf_config
                  bin/osrf_ctl.sh])