Sean, ignore that last script I sent you - I reread your email and
realised it's a HANDLE SERVER init script you're after, not a tomcat
init script. So try this one!
 
We've cobbled together a stop method for it which is based on looking
for java processes which contain the string log4j-handle - you may see
fit to use another method of detection. It's quite brutal, once it finds
such a process, it just kills it, but we've never had any problems using
it. The status method works much the same way.
 
We use chkconfig on a RHEL 5 AS system to install it as a service,
thereby controlling it via:
 
/sbin/service handled start|stop|restart|status
 
I hope this helps.
 
Kind regards,
 
Gary
 
 
Gary Browne
Development Programmer
Library IT Services
University of Sydney
ph: 9351-5946
 


________________________________

        From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sean
Carte
        Sent: Thursday, 31 July 2008 12:14 AM
        To: [EMAIL PROTECTED]
        Cc: [email protected]
        Subject: Re: [Dspace-tech] Running Handle Server As Root
        
        


        2008/7/29 Robin Taylor <[EMAIL PROTECTED]>
        

                Hi Sean,
                
                Personally I think its good Unix practice to avoid using
root and use a more
                specific user account wherever possible. What do you run
Tomcat as ? It
                might be sufficient to use the same user for the handle
server. You could
                start the process from some sort of init script using
something like (from
                'man su')
                
                 example% su - bin -c "command args"
                
                Cheers, Robin.


        Thanks Robin
        
        I totally agree with you about it being good practice to avoid
root, but my initial attempts to get the handle server to run as
tomcat55 failed, so I thought I'd ask about problems using root.
        
        I guess I'll try harder, but if anybody has an init script, I'd
appreciate it.
        
        Thanks,
        Sean
        
        -- 
        Sean Carte
        esAL Library Systems Manager
        +27 72 898 8775
        +27 31 373 2490
        fax: 0866741254
        http://esal.dut.ac.za/
        

Attachment: handled
Description: handled

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to