Rather than:
opensrf.py -l -d -f /openils/conf/opensrf_core.xml -p /openils/var/run/ -a start_all
you can now use:
opensrf.py -l -d -a start_all
Isn't that better? Note that we put the PIDs into PID_DIR/run/opensrf/
so that if/when OpenSRF is installed outside of the /openils/ prefix,
the names of the processes won't conflict with any other application PIDs.
Unlikely, but you never know.
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@2067
9efc2488-bf62-4759-914b-
345cdb29e865
src/libopensrf/Makefile
src/perl/Makefile
src/ports/strn_compat/Makefile
+ src/python/opensrf.py
src/router/Makefile
src/srfsh/Makefile
bin/opensrf-perl.pl
options = dict(ops)
-if '-a' not in options or '-f' not in options:
+if '-a' not in options:
do_help()
action = options['-a']
-config_file = options['-f']
-pid_dir = options['-p']
+
+config_file = options.get('-f', '@CONF_DIR@/opensrf_core.xml')
+pid_dir = options.get('-p', '@PID_DIR@/run/opensrf')
service_name = options.get('-s')
config_ctx = options.get('-c', 'config.opensrf')