[Cialug] uucp-style lock files?

John.Lengeling at radisys.com John.Lengeling at radisys.com
Tue Jul 19 10:49:47 CDT 2005


cialug-bounces at cialug.org wrote on 07/19/2005 10:41:56 AM:

> 
> 
> I'm trying to set up sendpage 'http://www.sedpage.org' to send pages to 
my
> pager.  I'm getting an error in messages about the lockfile.  Are 
lockfiles
> something I need to create or should they have been created for me?
They are created for you.  They indicate that the modem is in use by 
another program.
The PID of the process which created the lock file is stored in the file. 
This prevents two programs from trying
to talk to the device at the same time.  You have lock files on serial 
ports, modems, etc.

> 
> Here are the messages:
> 
> Jul 19 10:34:39 nagios sendpage[3881]: skytel/q112178727903881000:
> state=Queued, to=smith_skytel, from=smith at ipmvs.com(localhost), size=23
> Jul 19 10:34:49 nagios sendpage[3522]: Modem 'sportster': cannot access
> lockfile '/var/lock/LCK..ttyS0': Permission denied

sendpage probabally needs to run with some sort of privalage like 'uucp' 
to write lock files.
Either that or /var/lock is mode 777 then anyone can create them.  Look at 
the docs, it should tell you.

> Jul 19 10:34:49 nagios sendpage[3522]: No modems available
> Jul 19 10:34:49 nagios sendpage[3522]: proto startup failed (All modems
> presently in use)
> Jul 19 10:34:49 nagios sendpage[3522]: skytel/q112178727903881000:
> state=Temp-Failure, to=smith_skytel, from=smith at ipmvs.com, size=23, 
PC=All
> modems presently in use
> Jul 19 10:35:00 nagios sendpage[3887]: skytel/q112178730003887000:
> state=Queued, to=smith_skytel, from=smith at ipmvs.com(localhost), size=23
> 
> The directory /var/lock/LCK was not there so I created it.  I assigned 
group
> and user ownership to uucp and assigned permissions similar to the other
> lock directories.  but I still get the errors above.  From what I can 
find
> it sounds like this locking technique may be outdated.  Is anyone else 
using
> sendpage?  Did you run into this problem, did you get around it?
> 

Don't create a /var/lock/LCK directory.  The lock files are created in 
/var/lock with a file name LCK..<tty>.

> I used minicom to confirm my modem is on ttyS0 and I have created a 
symbolic
> link to /dev/modem.

???  Get rid of what ever you created in /var/lock.  The application will 
create the lock files for you.
The only problem like I said is that sendpage might not have access 
rights.

> 
> Any help or useful pointers would be much appreciated.
> 
> -Nate
> 
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cialug.org/pipermail/cialug/attachments/20050719/57bb680d/attachment.htm


More information about the Cialug mailing list