<br><font size=2><tt>cialug-bounces@cialug.org wrote on 07/19/2005 10:41:56
AM:<br>
<br>
> <br>
> <br>
> I'm trying to set up sendpage 'http://www.sedpage.org' to send pages
to my<br>
> pager. I'm getting an error in messages about the lockfile.
Are lockfiles<br>
> something I need to create or should they have been created for me?<br>
They are created for you. They indicate that the modem is in use
by another program.</tt></font>
<br><font size=2><tt>The PID of the process which created the lock file
is stored in the file. This prevents two programs from trying</tt></font>
<br><font size=2><tt>to talk to the device at the same time. You
have lock files on serial ports, modems, etc.</tt></font>
<br>
<br><font size=2><tt>> <br>
> Here are the messages:<br>
> <br>
> Jul 19 10:34:39 nagios sendpage[3881]: skytel/q112178727903881000:<br>
> state=Queued, to=smith_skytel, from=smith@ipmvs.com(localhost), size=23<br>
> Jul 19 10:34:49 nagios sendpage[3522]: Modem 'sportster': cannot access<br>
> lockfile '/var/lock/LCK..ttyS0': Permission denied<br>
</tt></font>
<br><font size=2><tt>sendpage probabally needs to run with some sort of
privalage like 'uucp' to write lock files.</tt></font>
<br><font size=2><tt>Either that or /var/lock is mode 777 then anyone can
create them. Look at the docs, it should tell you.</tt></font>
<br>
<br><font size=2><tt>> Jul 19 10:34:49 nagios sendpage[3522]: No modems
available<br>
> Jul 19 10:34:49 nagios sendpage[3522]: proto startup failed (All modems<br>
> presently in use)<br>
> Jul 19 10:34:49 nagios sendpage[3522]: skytel/q112178727903881000:<br>
> state=Temp-Failure, to=smith_skytel, from=smith@ipmvs.com, size=23,
PC=All<br>
> modems presently in use<br>
> Jul 19 10:35:00 nagios sendpage[3887]: skytel/q112178730003887000:<br>
> state=Queued, to=smith_skytel, from=smith@ipmvs.com(localhost), size=23<br>
> <br>
> The directory /var/lock/LCK was not there so I created it. I
assigned group<br>
> and user ownership to uucp and assigned permissions similar to the
other<br>
> lock directories. but I still get the errors above. From
what I can find<br>
> it sounds like this locking technique may be outdated. Is anyone
else using<br>
> sendpage? Did you run into this problem, did you get around
it?<br>
> </tt></font>
<br>
<br><font size=2><tt>Don't create a /var/lock/LCK directory. The
lock files are created in /var/lock with a file name LCK..<tty>.</tt></font>
<br><font size=2><tt><br>
> I used minicom to confirm my modem is on ttyS0 and I have created
a symbolic<br>
> link to /dev/modem.</tt></font>
<br>
<br><font size=2><tt>??? Get rid of what ever you created in /var/lock.
The application will create the lock files for you.</tt></font>
<br><font size=2><tt>The only problem like I said is that sendpage might
not have access rights.<br>
</tt></font>
<br><font size=2><tt>> <br>
> Any help or useful pointers would be much appreciated.<br>
> <br>
> -Nate<br>
> <br>
> _______________________________________________<br>
> Cialug mailing list<br>
> Cialug@cialug.org<br>
> http://cialug.org/mailman/listinfo/cialug<br>
</tt></font>