Avatar of pdurbha
pdurbha
 asked on

Problem with running service command

Hi,
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_CONF     =
JETTY_RUN      =  /var/run
JETTY_PID      =  /var/run/jetty.pid
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 -Djava.io.tmpdir=/tmp
JAVA           =  /usr/local/gehc-it/jre/bin/java
CLASSPATH      =
RUN_CMD        =  /usr/local/gehc-it/jre/bin/java  -Djetty.port=9096 -Djetty.home=/usr/local/gehc-it/servicetools/jetty/jetty-6.1.7 -Djava.io.tmpdir=/tmp -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.
Linux

Avatar of undefined
Last Comment
ravenpl

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
ravenpl

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
pdurbha

ASKER
When I run
service sshd status

I get a response

sshd (pid 31553 28166 1815) is running...

I am thinking it should work the same way for jetty too.....
SOLUTION
ravenpl

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ravenpl

I explained why "status" was not working, and how to get the status.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck