This wiki is a community-maintained resource about everything there is to know about IPFire.
You may wish to investigate the Network UPS tools (NUT) Addon instead of this one. NUT has more features and is capable of supporting UPSes from multiple manufacturers and for multiple client computers connected to one UPS. It is also more maintained than acpupsd.
To install apcupsd open the IPFire Console and type:
pakfire install -y apcupsd
… or install it via the webinterface by the use of Pakfire!
Find more information about apcupsd here
The configuration file will be found under:
Its already created by the installer and is documented in detail.
Its important to configure the correct UPS and connection type here.
If NETServer is enabled (NETServer on) you may also check the status from other Windows or Linux machines.
To create the initscript for apcupsd use an editor (like nano) and add the following:
filename = apcupsd
#!/bin/sh # Begin $rc_base/init.d/apcupsd # Based on sysklogd script from LFS-3.1 and earlier. . /etc/sysconfig/rc . $rc_functions case "$1" in start) `boot_mesg "Starting apcupsd daemon..."` `loadproc apcupsd` `;;` stop) `boot_mesg "Stopping apcupsd daemon..."` `killproc apcupsd` `;;` status) `statusproc /sbin/apcupsd` `;;` *) `echo "Usage: $0 (start|stop|status)"` `exit 1` `;;` esac # End $rc_base/init.d/apcupsd
Then change the file permission with:
chmod 755 /etc/init.d/apcupsd
start the apcups daemon with:
To stop the daemon, type
on the IPFire Console or via SSH!
ln -s ../init.d/apcupsd /etc/rc.d/rc3.d/S65apcupsd<br> ln -s ../init.d/apcupsd /etc/rc.d/rc0.d/K35apcupsd<br> ln -s ../init.d/apcupsd /etc/rc.d/rc6.d/K35apcupsd<br>
rm /etc/rc.d/rc3.d/S65apcupsd<br> rm /etc/rc.d/rc0.d/K35apcupsd<br> rm /etc/rc.d/rc6.d/K35apcupsd<br>