troubleshooting Question

Problem with running service command

Avatar of pdurbha
pdurbha asked on
4 Comments2 Solutions1124 ViewsLast Modified:
I am trying to check the status of jetty service by running the following command

"service jetty status"

The above command errors out with a message:

Usage: /etc/init.d/jetty {start|stop|run|restart|check|supervise} [ CONFIGS ... ]

When I run the command, I  get the following message that cofirms that jetty is actually running:

root@CCGRHE141 local]# /etc/init.d/jetty check
Checking arguments to Jetty:
JETTY_HOME     =  /usr/local/gehc-it/servicetools/jetty/jetty-6.1.7
JETTY_RUN      =  /var/run
JETTY_PID      =  /var/run/
JETTY_PORT     =  9096
CONFIGS        =  /usr/local/gehc-it/servicetools/jetty/jetty-6.1.7/etc/jetty-logging.xml /usr/local/gehc-it/servicetools/jetty/jetty-6.1.7/etc/jetty.xml
JAVA_OPTIONS   =   -Djetty.port=9096 -Djetty.home=/usr/local/gehc-it/servicetools/jetty/jetty-6.1.7
JAVA           =  /usr/local/gehc-it/jre/bin/java
RUN_CMD        =  /usr/local/gehc-it/jre/bin/java  -Djetty.port=9096 -Djetty.home=/usr/local/gehc-it/servicetools/jetty/jetty-6.1.7 -jar /usr/local/gehc-it/servicetools/jetty/jetty-6.1.7/start.jar  /usr/local/gehc-it/servicetools/jetty/jetty-6.1.7/etc/jetty-logging.xml /usr/local/gehc-it/servicetools/jetty/jetty-6.1.7/etc/jetty.xml
Jetty running pid=1851
When I restart it using service it freezes midway through the start-up.
[root@CCGRHE141 local]# service jetty stop
Stopping Jetty: OK
[root@CCGRHE141 local]# service jetty start
Starting Jetty: STARTED Jetty Mon Apr 14 01:28:17 CDT 2008
[root@CCGRHE141 local]# 1 [main] INFO org.mortbay.log - Logging to org.slf4j.impl.SimpleLogger@16a55fa via org.mortbay.log.Slf4jLog
167 [main] INFO org.mortbay.log - Redirecting stderr/stdout to /usr/local/gehc-it/servicetools/jetty/jetty-6.1.7/logs/2008_04_14.stderrout.log
Not sure why the service command to check the status isn't working

Any help would be greatly appreciated.
Join our community to see this answer!
Unlock 2 Answers and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros