[Urgent Help] How i can know about a service when it was start, stop or restart.
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.