LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-10-2014, 12:04 AM   #1
dicky238hk
LQ Newbie
 
Registered: Aug 2014
Posts: 18

Rep: Reputation: Disabled
Unhappy checking service status


I am confusing how to check the status.

I use service xxx status (for xxx = postfix), but for some (for example openssl) it returned error. Sometimes I use rpm -qa xxx (for example postfix again) it returned version. But return version does not mean it is running.

Checked out that to use systemctl.

Is there any further command to check the status?
 
Old 09-10-2014, 01:38 AM   #2
dyto
Member
 
Registered: Mar 2014
Posts: 86

Rep: Reputation: Disabled
ps aux|grep postfix

/etc/init.d/postfix status
 
Old 09-10-2014, 02:15 AM   #3
dicky238hk
LQ Newbie
 
Registered: Aug 2014
Posts: 18

Original Poster
Rep: Reputation: Disabled
Thanks

How about the others? Is it depending on using "which xxxx" (for example xxxx = procmail) to determine the folder location and then follow but just for this example "procmail" I type:-

/usr/bin/procmail status

but it is waiting the next input like.

Where can get common idea how to check?

thanks

Last edited by dicky238hk; 09-10-2014 at 02:17 AM. Reason: forget the folder name
 
Old 09-10-2014, 02:36 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,332
Blog Entries: 55

Rep: Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533
How about using Monit or Nagios instead?
 
Old 09-10-2014, 03:49 AM   #5
pratik.oturkar
LQ Newbie
 
Registered: Feb 2011
Posts: 18

Rep: Reputation: 1
hi try below command which shows you the service status with runlevel

/sbin/chkconfig --list this will display huge list of service with their current status
/sbin/chkconfig --list | grep xxx for specific service

to enable specific service on specific level

/sbin/chkconfig --level 5 syslog on
above command will configure syslog service to be run on runlevel
 
Old 09-10-2014, 04:43 AM   #6
dicky238hk
LQ Newbie
 
Registered: Aug 2014
Posts: 18

Original Poster
Rep: Reputation: Disabled
please see the attachment (jpg format).

After looking then my feeling is:-

Again stuck.

What can be next? Remove Nagios, try another Monit? Or...

Thanks for help.
Attached Thumbnails
Click image for larger version

Name:	reply-1-of-2.jpg
Views:	18
Size:	223.5 KB
ID:	16366   Click image for larger version

Name:	reply-2-of-2.jpg
Views:	11
Size:	247.6 KB
ID:	16367  
 
Old 09-10-2014, 05:37 AM   #7
pratik.oturkar
LQ Newbie
 
Registered: Feb 2011
Posts: 18

Rep: Reputation: 1
try service httpd restart and post entire output or find error log file in/var/log/httpd and also please post httpd.conf file
need to set some parameter in httpd.conf
and you are trying to run system service instead of systemctl type service cyrus-sasi status
 
Old 09-10-2014, 10:50 PM   #8
dicky238hk
LQ Newbie
 
Registered: Aug 2014
Posts: 18

Original Poster
Rep: Reputation: Disabled
Hi,

For service httpd restart, it returned error as:-

Redirecting to /bin/systemctl restart httpd.service
Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.

the httpd.conf is attached (I think nothing I made change as I do not have idea)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NAGIOS: Name or service not known output returned for custom developed service status katsanterre Linux - Software 2 05-07-2013 09:55 AM
There doesn't appear to be any service status information in the status log parthipan Linux - Server 1 06-25-2012 06:53 PM
Checking device status neerukamra Linux - General 1 09-06-2004 02:12 AM
command(s) for checking ip status stupidloser Linux - Wireless Networking 5 08-10-2004 11:21 AM
checking the status of PPP0 pudhiyavan Linux - Networking 6 01-14-2004 03:47 AM


All times are GMT -5. The time now is 12:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration