Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 16392 - several apcupsd 3.10.5 bugs
Summary: several apcupsd 3.10.5 bugs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Zach Welch (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 9942
Blocks:
  Show dependency tree
 
Reported: 2003-02-26 01:17 UTC by Leonid Kabanov
Modified: 2003-02-26 17:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leonid Kabanov 2003-02-26 01:17:20 UTC
apcupsd 3.10.5 still have #9942 bug! And in /etc/init.d/apcupsd there is 2
variables. It's good idea to place these vars in /etc/conf.d
Also old networking code disabled in ebuild but there no warning or messages
about it.
At last, I make configuration file for apache
/etc/apache/conf/addon-modules/apcupsd.conf:

Alias /apcupsd/ /home/httpd/apcupsd/

<Directory "/home/httpd/apcupsd/">
    AllowOverride AuthConfig
    Options ExecCGI
    Order allow,deny
    Allow from all
</Directory>


Reproducible: Always
Steps to Reproduce:
Comment 1 Matthias Grimm 2003-02-26 07:27:43 UTC
Apcupsd won't even start when configured as netmaster. Errormessage when starting:
/etc/init.d/apcupsd start
 * Starting APC UPS daemon...
apcupsd: apcnet.c:805 Old network code disabled. Use --enable-oldnet to enable.
apcupsd FATAL ERROR in apcupsd.c at line 353
Error setting up master

So, How could I setup my master-slave configuration?
Why is there no notification that --enable-oldnet is disabled while compile

The snippets from my config:
UPSCABLE 940-0024C
UPSTYPE apcsmart
NETSERVER on
NISPORT 3551
UPSCLASS netmaster
UPSMODE net

The same config did fine with 3.10.1 and lower....
Comment 2 Zach Welch (RETIRED) gentoo-dev 2003-02-26 17:41:33 UTC
I have added --enable-oldnet and commited 3.10.5-r1.  In addition, I also
made the ebuild respect the 'doc' use flag.  Finally, I discovered and 
patched around a race condition with the default init script restart code.

I did not move the vars in the init scripts to a conf file because
it would require the package re-bootstrap the configure script, which is
too big a change for a stable version bump.

Let me know if there are further problems.