last service restart
hi guys
can someone tell me how to check when a service was last restarted for example say httpd service Thankx |
just look at the age of the httpd process itself, or log entries specific to Apache. Generally there is no framework to track the service scripts themselves.
|
Code:
[schneidz@hyper ~]$ sudo service sshd restart Code:
[schneidz@hyper ide-34]$ sudo tail -f /var/log/messages edit: never mind... doesnt do anything with sudo service httpd restart |
Thanx a lot
I did a research and got found this which seems to be more precise ps -p "processId" -o lstart where processId is the id of the parent process in the case of httpd try it out |
Quote:
|
All times are GMT -5. The time now is 07:58 AM. |