Project

General

Profile

Actions

Bug #3400

closed

apcupsd service config does not allow DEVICE to be set

Added by D B over 11 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
01/21/2014
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Affected Version:
Affected Plus Version:
Affected Architecture:

Description

When configuring the apcupsd service using pfsense, only the UPSTYPE setting can be changed using the gui but not the DEVICE setting. The comment above the UPSTYPE box seems to imply it should contain a combination of UPSTYPE and DEVICE separated by a space, but really these need to be on separate lines in the config for it to work.

For serial connections you have to set the following in the config file on separate lines:
UPSTYPE apcsmart
DEVICE /dev/tty**

But the gui only lets one set the UPSTYPE, which causes apcupsd to shutdown immediately with the error "cannot open ups port: no such file or directory":
UPSTYPE apcsmart /dev/tty**

Can the DEVICE setting be added as a separate entry in the gui?

Actions #1

Updated by Danilo Baio over 11 years ago

Unfortunately not for all types you need UPSTYPE and DEVICE.
For example with pcnet, all config needs to be on UPSTYPE line.
I will push a commit for treat that on code.

Forum thread about this package:
https://forum.pfsense.org/index.php/topic,70830.msg387821.html#msg387821

Actions #3

Updated by Chris Buechler over 10 years ago

  • Status changed from New to Resolved
Actions

Also available in: Atom PDF