Solved

mgetty pppd

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

Free camera licenses with purchase of My Cloud NAS

Milestone Arcus software is compatible with thousands of industry-leading cameras for added flexibility. Upon installation on your My Cloud NAS, you will receive two (2) camera licenses already enabled in the software. And for a limited time, get additional camera licenses FREE.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
USPS intelligent mail barcode font 11 133
linux / python expert needed 3 88
I get an error right after Fail2ban restart in Ubuntu 14.04 2 94
Linux neworking 4 81
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 will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

863 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

24 Experts available now in Live!

Get 1:1 Help Now