Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Win32 module for 64 bit tomcat service

by Anonymous Monk
on Aug 22, 2013 at 08:56 UTC ( #1050494=perlquestion: print w/replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hello All, Greetings! I have installed tomcat-7 64 bit version on windows server 2008 R2-64 bit OS. now I want to manage my tomcat service using perl i.e. start, stop and restart options using perl scripts. I am able to stop it and start it but when I restart it, perl win32 module is not able to get the status of service. What could be possible resolution of this? Why this is happening? Any thoughts? Thanks in advance!

Replies are listed 'Best First'.
Re: Win32 module for 64 bit tomcat service
by Utilitarian (Vicar) on Aug 22, 2013 at 11:00 UTC
    Hi, I believe Tomcat stores its own PID on startup when you call the apropriate shutdown.bat it kills the correct process, I would suggest you simply run syatem('c:\path\to\shudown.bat');

    print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."
      HI, Thanks for your reply. Well, my script was perfectly working for 32 bit tomcat setup. dont know whats wrong with 64 bit setup.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1050494]
Approved by Corion
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2018-03-20 00:48 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (247 votes). Check out past polls.