Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Win32 module for 64 bit tomcat service

by Anonymous Monk
on Aug 22, 2013 at 08:56 UTC ( [id://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?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1050494]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-25 12:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found