LinuxQuestions.org
Help answer threads with 0 replies.
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 11-16-2013, 07:11 AM   #1
CJennings87
LQ Newbie
 
Registered: Nov 2013
Posts: 5

Rep: Reputation: Disabled
Help with answering a question about rogues and kill processes


You are the systems administrator for a large trust company. Most of the Linux servers in the company host databases that are accessed frequently by company employees. One particular Linux server has been reported as being very slow today. Upon further investigation using the top utility, you found a rogue process that is wasting a great deal of system resources. Unfortunately, the rogue process is a database maintenance program and should be killed with caution.

Which kill signal would you send this process and why?

SIGTERM

#kill -15

This signal will try to terminate the process safely.

If the rogue process traps this signal, which other kill signals would you try?

SIGHUP

#kill -1

This signal forces a process to reread it's configuration files.


Which command could you use as a last resort to kill the rogue process?

SIGKILL

#kill -9

I'm not sure if my second answer is correct and/or if it's correct if there's actually more than one solution at this point.

Thank you

Last edited by CJennings87; 11-16-2013 at 07:44 AM.
 
Old 11-16-2013, 07:51 AM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 7,709

Rep: Reputation: 2451Reputation: 2451Reputation: 2451Reputation: 2451Reputation: 2451Reputation: 2451Reputation: 2451Reputation: 2451Reputation: 2451Reputation: 2451Reputation: 2451
Obviously, this is a homework problem, and so you should carefully read the appropriate man pages to confirm your answer.
 
Old 11-16-2013, 08:18 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,335
Blog Entries: 55

Rep: Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535
Moved: This thread is more suitable in the Newbie Forum and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 11-16-2013, 08:23 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,335
Blog Entries: 55

Rep: Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535
Quote:
Originally Posted by CJennings87 View Post
I'm not sure if my second answer is correct
It would help if you wrote your motivation for sending that signal? (Or better: motivate why other signals like -STOP wouldn't apply.) Making an application reread its configuration file asserts it will do that and it may not have the intended or any effect. Then again you may be talking to the wrong person as I am not the systems administrator for a large trust company.
 
Old 11-16-2013, 03:09 PM   #5
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,661

Rep: Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256
ANY signal sent to a process (except 9) is totally up to the process as to what it does with it.

Most of them are ignored if not handled.

9 cannot be handled by the process. It is the only signal that cannot be caught, or ignored.

SOME processes use 1 (HUP) to restart, but that is a historical use (HUP was used to Hang UP modems from the telephone line - hence the name).

If you are worried about a database process... then you need to search the documentation for what it is supposed to do. Failing that, call the vendor. If you can't do that, search the source code to see what it really does. If you can't do that either, report it as a failure of the software. Then let management decide what to do. The only guaranteed termination is 9.
 
  


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
[SOLVED] Perl to kill off some processes d072330 Programming 7 01-04-2011 05:33 PM
Use only one "kill" to kill father and child processes Xosen Programming 7 08-28-2008 03:33 AM
Can't kill certain processes.... Basslord1124 Slackware 2 01-29-2008 10:28 AM
how to kill processes htamayo Linux - Newbie 2 09-25-2007 10:27 AM
how to use kill to kill a batch of processes with same name? dr_zayus69 Linux - Software 2 09-03-2005 06:35 PM


All times are GMT -5. The time now is 04:48 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