LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-21-2012, 07:09 AM   #1
nasirkhan
LQ Newbie
 
Registered: Oct 2012
Posts: 6

Rep: Reputation: Disabled
Lightbulb [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.
 
Old 10-21-2012, 10:24 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,685

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by nasirkhan View Post
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.
 
Old 10-22-2012, 03:21 AM   #3
nasirkhan
LQ Newbie
 
Registered: Oct 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
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

Last edited by nasirkhan; 10-22-2012 at 03:22 AM.
 
Old 10-22-2012, 09:56 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,685

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by nasirkhan View Post
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.
 
  


Reply



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
shortcut to restart or stop a service hasmeet.singh337 Linux - Software 5 01-28-2011 08:47 AM
how can i start, stop or restart Paxmaster Slackware 3 11-27-2004 01:31 PM
how to stop/start/restart iptables? plan9 Linux - Newbie 8 08-06-2004 04:40 PM
Is it possible to start stop and restart a linux service from a webpage? psychodreams Linux - Newbie 3 04-27-2004 01:24 PM
Start Stop Restart Services Sifvion Slackware 6 09-14-2002 03:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:46 AM.

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
Open Source Consulting | Domain Registration