apcupsd 3.14.4 works for an APC SUA3000 attached via a smart cable to
the serial port of an Apple Xserve running MacOSX 10.5.4.
The crucial step is disabling the default getty process on the serial
port (/dev/tty.serial).
The command to do this is (as superuser):
launchctl unload -w
/System/Library/LaunchDaemons/com.apple.xserve.serial-ports.plist
This adds a disabled flag to that property list file (and kills any
getty process running on the serial port).
apcupsd can then be launched using:
SystemStarter start "APC UPS monitor"
as normal.
For those that are interested there are a number of false trails:
Although the file /etc/ttys contains a line relating to /dev/tty.serial,
commenting out or editing this line has no effect on a getty process on
/dev/tty.serial, even after a reboot.
The script SerialTerminalSupport which apparently used to be in
/System/Library/StartupItems/ has been moved to
directory /usr/libexec/serial/ but incorrectly references itself in the
previous location. Once this has been fixed, running the script
SerialTerminalSupport start (or stop)
will modify the /etc/ttys file but again has no effect on a getty
process on the serial port.
Similarly setting ENABLE_SERIAL_TERMINAL=$FALSE
in the SerialTerminalSupport script has no effect.
Jerry Daniel
|
|
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________
Apcupsd-users mailing list
Apcupsd-users@...
https://lists.sourceforge.net/lists/listinfo/apcupsd-users