LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-18-2010, 03:53 AM   #1
B.Johnson
LQ Newbie
 
Registered: Jun 2010
Posts: 1

Rep: Reputation: 0
Is kill a service command?


Hello. I am a student taking a linux class and one of the home work questions read "How would you use the service command to kill the bigd daemon?" I am not asking for the answer. I just was wondering if I needed to research the kill command. So in other words my question is; Is the kill command considered a service command?
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 06-18-2010, 04:12 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi,

Nope, kill is not what is meant, although kill could be part of the service command.

Hint: Ask yourself how a system stops/starts/restarts a daemon in a nice way.

Hope this helps.
 
1 members found this post helpful.
Old 06-18-2010, 07:10 AM   #3
Gridley
LQ Newbie
 
Registered: Apr 2010
Posts: 10

Rep: Reputation: 1
This appears to be a distribution specific question. Not all Linux distributions use 'service' functionality, but this is really little more than a wrapper around the run-level architecture.

The answer to your question should prompt you to understand how that (run-level) behaves. As for the exact question you are trying to answer, I would really like to see how "service command" is defined.

The immediate instinct is that this is somehow related to run-level, but then it may be related to this: http://linux.about.com/library/cmd/blcmdl5_services.htm

Last edited by Gridley; 06-18-2010 at 07:13 AM.
 
Old 06-18-2010, 09:15 AM   #4
myposts
Member
 
Registered: Jun 2010
Posts: 46

Rep: Reputation: 21
Listen...

in UNIX/Linux all processes communicate to each other using system of so-called signals. Some signals are traceable, it means that a process can catch the signal and respond (or react) and not-traceable (that go directly to process structure and remove the process). "kill" is the command of user level that sends the signal. you can see the list of available signal by "kill -l". "kill -9" will send "TERMINATION" signal to a process, means kill it, but it is only one of 15 signals. My advice, get Evi Nemeth book http://www.amazon.com/Linux-Administ...6866800&sr=8-1 or "Learn Linux" DVDs by UNIX Academy http://www.amazon.com/gp/search/ref=...47&rnid=491286 they explain these subjects very well.

Many daemons know how catch specific signal, and let say re-read their configuration file (kill -1 is popular)

hope it helps

Last edited by myposts; 06-18-2010 at 09:16 AM.
 
Old 06-18-2010, 09:23 AM   #5
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 394

Rep: Reputation: 61
Hi,

You're confusing the "kill" command with the language used in the question. What it really means is - how would you normally stop the 'bigd' daemon using the "service" command? It's nothing to do with the process "kill" command.
 
2 members found this post helpful.
Old 06-18-2010, 11:10 AM   #6
Bratmon
Member
 
Registered: Jul 2009
Location: 75.126.162.205:80
Distribution: Arch / Mint 17
Posts: 297
Blog Entries: 3

Rep: Reputation: 50
Code:
man service
 
0 members found this post helpful.
Old 06-18-2010, 12:08 PM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
@Bratmon: Isn't that a BSD specific command? Most linux bixes do not have a manual page for service.
 
Old 06-18-2010, 04:39 PM   #8
Bratmon
Member
 
Registered: Jul 2009
Location: 75.126.162.205:80
Distribution: Arch / Mint 17
Posts: 297
Blog Entries: 3

Rep: Reputation: 50
Quote:
Originally Posted by druuna View Post
@Bratmon: Isn't that a BSD specific command? Most linux bixes do not have a manual page for service.
Not BSD, just distro-specific. And the OP said he needed to use the service command.
 
Old 09-19-2010, 10:01 PM   #9
opform249
LQ Newbie
 
Registered: Sep 2010
Posts: 1

Rep: Reputation: 0
B.Johnson, I too am a student probably taking the same class cause I have the same question on my homework. You have probably already passed the course (hopefully) so I am posting this for future students that might have the same question. You can find your answer on p.430 if you are using Fedora and Red Hat Enterprise Linux Fifth Edition book. If you are not, sorry...keep googling.

Good luck and don't worry, you will get it. Just keep working with it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
kill command mohit_parihar Linux - General 3 01-13-2010 04:35 AM
why we cannot kill process id 1 with command "kill -9 1" satyaredhat Linux - Newbie 7 03-11-2009 01:48 PM
Kill command could not kill Kanaflloric Linux - General 11 08-22-2005 08:18 AM
checking if service is running and if so kill it chrisfirestar Linux - Software 3 02-25-2005 04:23 AM
The kill command tearinox Linux - Newbie 2 08-15-2003 05:40 PM


All times are GMT -5. The time now is 10:47 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration