Powstatd for UPS monitor

Hi,

After NUT mysteriously stopped working on my server I am back again to see whether I can port powstatd to FreeBSD. When I compile I got an error as follows:

Code:
error: 'TCSBRKP' undeclared (first use in this function)

I commented the TCSBRKP line to see any effects, then I got the above error for SIGPWR. I commented that line too to see the compilation. The compile was succesfull, when I run powstatd in test mode and daemon mode it detects the power failures and changes /usr/local/etc/powerstatus appropriately (either with OK or FAIL). However powstatd was unable to execute the relevant init files.

Can someone please help me to port this software to FreeBSD? Currently this is the only thing which stops me from migrating from Debian to FreeBSD. The attachment is of original software. From another forum I found this for SIGPWR:

Code:
#define SIGPOLL 23
#define SIGPWR 29
#define SIGIO SIGPOLL
#define SIGLOST SIGPWR

Not sure whether this will help in getting rid of the SIGPWR error.

Thanks,
 

Attachments

  • powstatd-1.5.1.zip
    49.2 KB · Views: 165
Back
Top