Solved

mgetty pppd

Posted on 1998-07-06
3
306 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

696 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