[wellylug] modem and power cuts
jumbophut
jumbophut at gmail.com
Thu Jun 9 22:58:15 NZST 2005
On 6/10/05, jim wrote:
>
> I don't understand lock files, so I was glad to see that I don't have
> the file Tony suggested.
>
The lock file is a file that ppp puts in a known location after
opening the port so that if somebody else tries to use ppp with the
same ttyS port, ppp knows it is already in use. When you disconnect,
that file should be deleted by ppp. However, if there is a crash
while before disconnection, it might not get properly removed.
You could check for /var/lock/LCK..ttyS2 or some such, when you are
not dialed up. I'm pretty sure you can just delete the file (as long
as you are not connected at the time). Mine contains the process id
of the ppp instance controlling my modem (from the second column of
output from 'ps aux').
(Though if the lock file is there, rather than in a home directory, it
seems unlikely that it would stop one user connecting and not another.
I suppose it could depending on the permissions on the lock file and
the user kppp runs as).
--
Tony (echo 'spend!,pocket awide' | sed 'y/acdeikospntw!, /l at omcgtjuba.phi/')
More information about the wellylug
mailing list