Solved

mgetty pppd

Posted on 1998-07-06
3
291 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

Suggested Solutions

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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

757 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now