added profiling mode
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 7 Mar 2005 21:59:35 +0000 (21:59 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 7 Mar 2005 21:59:35 +0000 (21:59 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@256 dcc99617-32d9-48b4-a31d-7c20da2025e4

OpenSRF/bin/opensrf_ctl

index 00739dd..98ac929 100755 (executable)
@@ -21,6 +21,16 @@ case $1 in
                $0 status;
                echo;
                ;;
+       "startprofile")
+               if [ -z $2 ]; then
+                       usage;
+                       exit;
+               fi              
+               OPENSRF_PROFILE=1 perl -MOpenSRF::System="$2" -e 'OpenSRF::System->bootstrap()' & 
+               sleep 2;
+               $0 status;
+               echo;
+               ;;
        "stop")
                PID=$(ps ax | grep "[0-9] System$" | awk '{print $1}');
                if [ -z $PID ]; then