Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-07-2003, 09:12 PM   #1
Registered: Sep 2002
Location: Cincinnati
Distribution: Debian GNU/Linux
Posts: 310

Rep: Reputation: 31
inetd script in /etc/init.d is running amuck

Preliminary: I'm running Debian 3.0 unstable

Somehow, inetd got installed on my laptop (that's a whole other rant because I did a base install and used apt-get for everything else). I just found out today that it's there (it wasn't there before) and tried to remove it with dpkg. It wouldn't uninstall, complained about dependencies or something, and I had to get ready for work. So I figured inetd is running at startup, I could just do something in /etc/init.d to kill or stop it. Sure enough there's an inetd script in /etc/init.d that takes a command line argument (start|stop|restart). So just before the very last line (which is an exit call), I put inetd stop. Now when I try to boot, it continually scrolls:

Stopping internet superserver: inetd.

Eventually it complains that all the memory has been used, and starts killing other processes. How can I get in there to fix this?
Old 03-07-2003, 09:51 PM   #2
Registered: Sep 2002
Location: Cincinnati
Distribution: Debian GNU/Linux
Posts: 310

Original Poster
Rep: Reputation: 31
Thumbs up Hey I fixed it!

I'm running LILO, so I selected which kernel image I wanted to boot, then typed init=/bin/bash

This eventually dropped me into a root shell with / mounted as read-only. I couldn't edit the /etc/init.d/inetd file at that point, so I remounted / in read-write mode with mount -n /proc then mount -o rw,remount /. Opened up the /etc/init.d/inetd again, took out the problematic line, and I was all set.

Still trying to figure out how to remove inetd with dpkg.. and also how the heck inetd got installed. Weird. Just thought I would share my solution in case anyone had a similar problem and came across this thread in the future.

[edit]: I also found this on the Debian site.

     # FIXME: this is quick and dirty; replace with a more robust script snippet
     for i in `sudo lsof -i | grep LISTEN | cut -d " " -f 1 |sort -u` ; do
             pack=`dpkg -S $i |grep bin |cut -f 1 -d : | uniq`
             echo "Service $i is installed by $pack";
             init=`dpkg -L $pack |grep init.d/ `
             if [ ! -z "$init" ]; then
                      echo "and is run by $init"

Last edited by int0x80; 03-07-2003 at 10:04 PM.


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
running a script from inetd/xinetd spyghost Linux - Networking 3 09-20-2005 04:12 AM
Trouble with a shell script running with inetd scottd431 Linux - Networking 0 11-11-2004 09:57 AM
Trouble with a shell script running with inetd scottd431 Linux - General 0 11-11-2004 09:05 AM
openoffice run amuck? Lleb_KCir Linux - General 4 03-30-2004 12:38 AM
chrooting or jailing inetd or inetd started daemons ? MasterC Linux - Security 2 07-15-2003 05:28 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:29 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration