A: This problem and the problem of cannot create shm area are due
to the fact that the shared memory key that apcupsd wants to use
is already in use. This happ ens most frequently when there is an old
zombie apcupsd process still in the system. The solution is to remove
the old process. You can often see what is going on by doing a: ipcs
command as root when apcupsd is not running. If you see a segment
with the key 0x10feed01, you can be sure there is some old apcupsd
process still using it. If you cannot kill the old process, you can try
using ipcrm (see the man pages). Recent versions of apcupsd starting
with apcupsd-3.8.2Beta6 should no longer have this problem as they
will automatically try using a different key.
Q: I get the following error: “Startingapcupsd power management. Mar20
21:19:40 box apcupsd[297]: apcupsdFATAL ERROR in apcserial.c at
line 83. Cannot open UPS tty /dev/cua01: No such file or directory.”
What is the problem?
A: The two most likely causes of your problem are: 1. Youhave the wrong
serial port device name in the apcupsd.conf file. 2. The device name
is not defined on your system. Suggestions forproceeding:For the first
item, check what your serial port device should be named. Youmight
be able to find the name with an:
ls /dev
Normally there will be hundreds or even thousands of names that print.
If that doesn’t produce anything useful, you can try step 2. Perhaps
your device is not defined. To get more information on your devices
try man MAKEDEV or find / -name MAKEDEV. It is often located in
/dev/MAKEDEV. Looking at the documentation may tell you what the
correct name is, or at least allow you to create the device.
Q: How do I ensure that the slavesshutdown before the master?
A: There are several strategies for getting the slaves properly shutdown
before shutting down the master. The first is to make the master
wait a period of time for the slaves to shutdown before doing its
own shutdown. Currently, the master always waits 30 seconds be-
fore starting its own shutdown. If this is insufficient, you can add
additional time by putting an appropriate sleep shell command in the
/etc/apcupsd/apccontrol file just before the actual system shutdown
command is executed (there are something like 3 places). The second
strategy is to put a TIMEOUT value in the apcupsd.conf file on the
98