LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Postgres Process Restarts with New PID (https://www.linuxquestions.org/questions/slackware-14/postgres-process-restarts-with-new-pid-4175502379/)

slack_ 04-20-2014 01:02 PM

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.

Richard Cranium 04-20-2014 10:37 PM

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


All times are GMT -5. The time now is 01:16 PM.