LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-12-2007, 01:22 PM   #1
sidra
Member
 
Registered: Oct 2004
Location: USA
Distribution: Fedora Core 3, Red Hat 9, CentOS 4.2, Mandriva, Ret Hat Enterprise Linux 4.0
Posts: 116

Rep: Reputation: 15
mgetty restarting


Hi all,

I'm trying to set up a dial-in server on my linux box. I configured everything according to this article:

http://www.howtoforge.com/linux_dialin_server

I do a 'ps -aux | grep mgetty', every couple of seconds it shows a different pid, it means that it's crashing and init is restarting it. I don't know why this is happening. The output of ps is:

[root@Primary ~]# ps -aux | grep mgetty
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.3/FAQ
root 8471 0.0 0.1 2132 640 ? Ss 11:18 0:00 /sbin/mgetty -D ttyS0
root 8473 0.0 0.1 5456 644 pts/2 S+ 11:19 0:00 grep mgetty


In /var/log/messages i get:

Sep 12 11:11:12 Primary init: Id "S2" respawning too fast: disabled for 5 minutes
Sep 12 11:11:12 Primary init: Id "S1" respawning too fast: disabled for 5 minutes
Sep 12 11:11:13 Primary init: Id "S3" respawning too fast: disabled for 5 minutes
Sep 12 11:15:40 Primary init: Id "swbm" respawning too fast: disabled for 5 minutes
Sep 12 11:16:21 Primary init: Id "S1" respawning too fast: disabled for 5 minutes
Sep 12 11:16:21 Primary init: Id "S2" respawning too fast: disabled for 5 minutes
Sep 12 11:16:21 Primary init: Id "S3" respawning too fast: disabled for 5 minutes


I'm not sure what is going on. Does anyone have a clue? When i try dialing in there is no tone probably because mgetty is restarting.
 
Old 09-13-2007, 05:27 AM   #2
pejman
LQ Newbie
 
Registered: Sep 2007
Location: Iran - Zanjan
Distribution: Slackware
Posts: 5

Rep: Reputation: 0
Is there only one modem connected to your machine?

I think you have only one modem connected to ttyS0 (COM1) of your linux machine, but you configured 4 modems in /etc/inittab so if this is right, remove these lines from /etc/inittab :

Code:
S1:2345:respawn:/sbin/mgetty -D ttyS1
S2:2345:respawn:/sbin/mgetty -D ttyS2
S3:2345:respawn:/sbin/mgetty -D ttyS3
And keep only this one :

Code:
S0:2345:respawn:/sbin/mgetty -D ttyS0
Finally reload inittab with one of these commands :

Code:
# init q
or
# /sbin/telinit q
Now error messages in /var/log/messages must be disappear.
 
Old 09-13-2007, 01:06 PM   #3
sidra
Member
 
Registered: Oct 2004
Location: USA
Distribution: Fedora Core 3, Red Hat 9, CentOS 4.2, Mandriva, Ret Hat Enterprise Linux 4.0
Posts: 116

Original Poster
Rep: Reputation: 15
Thanks, my problem is solved! I have a dial in server set up!
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
restarting mgetty after loss of carrier billf Linux - Software 0 02-22-2006 09:55 AM
mgetty??? slack66 *BSD 3 01-01-2005 03:42 AM
mgetty conections Buntoro Linux - Networking 1 10-21-2003 09:14 AM
pppd and mgetty nitelifer Linux - Networking 0 07-15-2003 11:06 PM
mgetty ? dbeard Linux - Networking 2 06-28-2001 04:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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