LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   [Urgent Help] How i can know about a service when it was start, stop or restart. (https://www.linuxquestions.org/questions/linux-server-73/%5Burgent-help%5D-how-i-can-know-about-a-service-when-it-was-start-stop-or-restart-4175433337/)

nasirkhan 10-21-2012 07:09 AM

[Urgent Help] How i can know about a service when it was start, stop or restart.
 
Any body knows about

How i can know a service is when stop or restart or
added in chkconifg enable/disable [Startup] list.

TB0ne 10-21-2012 10:24 AM

Quote:

Originally Posted by nasirkhan (Post 4811304)
Any body knows about

How i can know a service is when stop or restart or added in chkconifg enable/disable [Startup] list.

This is NOT URGENT for anyone here...as you've been told before, we volunteer our time, and asking for 'urgent' help is fairly rude.

Also, if you want a quick answer, your question needs to be clear...as stated now, it's fairly vague. If you want to know what is enabled/disabled, try looking at the "-l" (list) switch. If you want to know if a service has been stopped/started, you will have to look at the service log files and/or the system log file.

nasirkhan 10-22-2012 03:21 AM

Possibly it's not urgent for you but it is for me, because i am creating a scirpt where i need

- Start, Stop, or Restart last Exectution time.
- Enable or disable in startup ... last effected time

anyways thanks for

TB0ne 10-22-2012 09:56 AM

Quote:

Originally Posted by nasirkhan (Post 4811945)
Possibly it's not urgent for you but it is for me

Not "possibly"...it is NOT urgent. And you're still missing the point, because we volunteer our time here. Just because it's 'urgent' for YOU does NOT make it urgent for US. Asking for priority help from a team of volunteers is plain rude.
Quote:

because i am creating a scirpt where i need

- Start, Stop, or Restart last Exectution time.
- Enable or disable in startup ... last effected time

anyways thanks for
Ok, so if you need a script, post what you've written/tried so far, and where you're stuck, and we will be glad to help. Otherwise, the man page on chkconfig can give you some help, and looking at the aforementioned log files. Good luck with your homework.


All times are GMT -5. The time now is 03:28 PM.