Solved

mgetty pppd

Posted on 1998-07-06
3
299 Views
Last Modified: 2010-03-18
I have a Linux server and am able to dial into our corporate network using pppd. The problem is that during days the server is used as an x-server and the lines are used to dial-out on and unless I comment out the mgetty entries in the inittab file the connection gets killed by pppd I think.

0
Comment
Question by:nekau
  • 2
3 Comments
 

Author Comment

by:nekau
ID: 1584692
Actually Mgetty kills the connection.

0
 
LVL 2

Accepted Solution

by:
alexbik earned 100 total points
ID: 1584693
Hi,

The dialout connections gets killed by mgetty, right?
Mgetty can share modems with other programs, but
you will need to lock the device by creating a lockfile.
This file must contain the PID of the program currently
using the modem. If mgetty detects such a file, it will
check if it is current by checking if the PID in the file
is still running. If so, mgetty will wait and do nothing.
Else, the lockfile is removed, and mgetty starts initializing
the modem. The location of the lockfile is system-dependant,
but usually /var/lock. If you are locking /dev/ttyR0 you would
need to create a file called /var/lock/LCK..ttyR0 (that's right,
two dots).

Alex.
0
 

Author Comment

by:nekau
ID: 1584694
I found the problem to be just that. I was running pppinit from a different machine and it was creating a lock file for device modem. So it was creating a lock file for the wrong device.

I modified pppinit to lock the appropriate device and things are working well now.

Thanks
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question