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? |
ps aux|grep postfix
/etc/init.d/postfix status |
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 |
How about using Monit or Nagios instead?
|
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 |
2 Attachment(s)
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. |
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 |
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) |
All times are GMT -5. The time now is 06:04 AM. |