On 27/08/2009, at 3:52 PM, Sean Carte wrote:
> Last year Gary Browne shared his handled startup script, which I've
> attached.
Some suggestions for improving that script:
# better to keep than discard stderr, stdout
- su - dspace -c /dspace/bin/start-handle-server 2>&1 > /dev/null
+ su - dspace -c /dspace/bin/start-handle-server 2>&1 > /var/
log/handle-server.log
# compare the results of x and y below
- PID=`/bin/ps -ef | grep java | grep log4j-handle | grep -v
'grep' | awk '{print $2}'` # [x]
- if [ ! -z "$PID" ] ; then
- for process in ${PID}
+ PID=`/bin/ps -u dspace -ww -o user,pid,cmd |/bin/fgrep '/
handle-server' |/bin/awk '{print $2}'` # [y]
+ if [ ! -z "$PID" ] ; then
+ for process in ${PID}
$ x=`/bin/ps -ef | grep java | grep log4j-handle | grep -v 'grep' |
awk '{print $2}'`
$ echo $x
$ y=`/bin/ps -u dspace -ww -o user,pid,cmd |/bin/fgrep '/handle-
server' |/bin/awk '{print $2}'`
$ echo $y
Best wishes,
Van Ly
vly at usyd dot edu dot au
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech