projects
/
working
/
OpenSRF.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70f0359
)
capture the perl pid using ps instead of $! (forking for daemonization)
author
miker
<miker@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 5 Jul 2007 00:02:42 +0000
(
00:02
+0000)
committer
miker
<miker@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 5 Jul 2007 00:02:42 +0000
(
00:02
+0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@994
9efc2488
-bf62-4759-914b-
345cdb29e865
bin/osrf_ctl.sh
patch
|
blob
|
history
diff --git
a/bin/osrf_ctl.sh
b/bin/osrf_ctl.sh
index
374385d
..
c96eb4c
100755
(executable)
--- a/
bin/osrf_ctl.sh
+++ b/
bin/osrf_ctl.sh
@@
-119,9
+119,9
@@
function stop_router {
function start_perl {
do_action "start" $PID_OSRF_PERL "OpenSRF Perl";
perl -MOpenSRF::System="$OPT_CONFIG" -e 'OpenSRF::System->bootstrap()' &
- pid=$
!;
+ pid=$
(ps ax | grep "OpenSRF System" | grep -v grep | grep -v "System-C"| awk '{print $1}')
echo $pid > $PID_OSRF_PERL;
- sleep
5
;
+ sleep
3
;
return 0;
}