LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 04-20-2014, 01:02 PM   #1
slack_
Member
 
Registered: Oct 2013
Distribution: Slackware, Arch
Posts: 84

Rep: Reputation: Disabled
Postgres Process Restarts with New PID


This is ridiculous. I started installing metasploit last night but was extremely tired so I didn't finish. The last thing I did was run these two commands as instructed:
Code:
groupadd -g 209 postgres
useradd -u 209 -g 209 -d /var/lib/pgsql postgres
Today I realized that I didn't actually want to do this so I attempted to remove the user and group both names postgres. However, I can't remove the group because the user is using it, and I can't remove the user because the user is used by process 1919. Ok, so let's kill the process:
Code:
kill 1919
Then try to delete the user again. No such luck. Apparently the process is automatically restarted on a different PID. Fine:
Code:
kill -9 1963
Nope, process just restarts on a new PID. Herm...
Code:
ps aux | grep 1963
The processes name is: postgres msf3 msf3 127.0.0.1(60397)idle. I try killall with that whole process name.
Code:
No process found
I try killall postgres, killall msf3, killall postgres msf3 msf3. No processes found. How do I murder this process?

EDIT: WOW, my apologizes. I found it using pstree -p. The process was postgres.bin and I killed that using
Code:
postgres.bin
Sorry for wasting forum space.

Last edited by slack_; 04-20-2014 at 01:05 PM.
 
Old 04-20-2014, 10:37 PM   #2
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.1
Posts: 1,444

Rep: Reputation: 409Reputation: 409Reputation: 409Reputation: 409Reputation: 409
Please mark the thread as [SOLVED] so ninnyhammers like me won't try to help.
 
  


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
Gets to grub loading then restarts and loops this process. ras8761 Slackware 3 06-16-2013 09:58 PM
[SOLVED] How to save the pid of a process at the time of process startup jhonnappier2007 Linux - Newbie 13 11-20-2011 11:54 PM
how parent process again restarts killed child processes?? vflex Linux - Newbie 1 11-08-2011 03:09 PM
Multiple postgres process arunkeerthan Linux - Server 0 08-02-2010 05:30 AM
How to get the PID of the process giving kill signal to a process? hariprd Programming 2 11-27-2008 03:10 AM


All times are GMT -5. The time now is 09:48 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration