LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-24-2002, 01:45 AM   #1
psyklops
Member
 
Registered: Jan 2002
Location: Los Angeles
Distribution: RedHat 9.0
Posts: 216

Rep: Reputation: 30
ps ax | grep xinetd


Got a question. When I

ps ax | grep xinetd

I get

931 ? S 0:00 xinetd -stayalive -reuse -pidfile /var/run/xinetd.pid
3824 pts/2 S 0:00 emacs xinetd.conf
3900 pts/1 S 0:00 grep xinetd

My question is about the top output. I ran

kill -HUP 931

but it wouldnt die. I went to the xinetd.pid file and commented out 931 but the process still runs. Can someone tell me what this is about. Im going through and trying to close unneeded processes as this is just a home desktop.

Last edited by psyklops; 04-24-2002 at 01:47 AM.
 
Old 04-24-2002, 03:18 AM   #2
mikek147
Member
 
Registered: Mar 2002
Location: Elyria, Ohio
Distribution: Debian, Nothing else required
Posts: 141

Rep: Reputation: 15
The command:

kill -HUP 931

also know as -SIGHUP or -1, will not kill, or terminate the xinetd process. What that command will do is force xinetd to re-read it's configuration file. To kill a process, just use:

kill 931

This form of killing defaults to the -SIGTERM, -15, which tells xinetd to shut itself down gracefully. If all else fails, you can kill with:

kill -SIGKILL 931

or -9. This is a non-blockable form of kill. This form of kill can be dirty, in that it just shuts down the process, but does nothing about closing down files, ports etc that the process may have had open. -mk
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
grep ?? can grep us variables? DaFrEQ Linux - Software 4 09-14-2005 12:22 PM
Xinetd dead --xinetd dead but pid file exists hillxy Linux - General 1 04-15-2004 02:10 PM
What does rpm -qa |grep th* (as compared to rpm -qa |grep th) display? davidas Linux - Newbie 2 03-18-2004 01:35 AM
"Undeleting" data using grep, but get "grep: memory exhausted" error SammyK Linux - Software 2 03-13-2004 03:11 PM
ps -ef|grep -v root|grep apache<<result maelstrombob Linux - Newbie 1 09-24-2003 11:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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