Difference between pages "Package:BSF Bean Scripting Framework" and "Package:APC UPS Daemon"

From Funtoo
(Difference between pages)
Jump to navigation Jump to search
 
(Removed table of USE flags, as this is going to be added by an update Daniel is working on.)
 
Line 1: Line 1:
{{Ebuild
{{Ebuild
|Summary=A framework that allows many scripting languages to be plugged into a Java application.
|Summary=APC UPS daemon with integrated network-based remote shutdown
|CatPkg=dev-java/bsf
|CatPkg=sys-power/apcupsd
|Maintainer=
|Repository=Gentoo Portage Tree
|Homepage=http://commons.apache.org/proper/commons-bsf/
}}
}}


=== What is BSF Bean Scripting Framework? ===
"Apcupsd can be used for power mangement and controlling most of APC's UPS models on Unix and Windows machines. Apcupsd works with most of APC's Smart-UPS models as well as most simple signalling models such a Back-UPS, and BackUPS-Office. During a power failure, apcupsd will inform the users about the power failure and that a shutdown may occur. If power is not restored, a system shutdown will follow when the battery is exhausted, a timeout (seconds) expires, or runtime expires based on internal APC calculations determined by power consumption rates. Apcupsd is licensed under the GPL version 2." [http://www.apcupsd.org/]
According to [http://commons.apache.org/proper/commons-bsf/ Apache Commons], BSF is:


<blockquote>
==Installation==
Bean Scripting Framework (BSF) is a set of Java classes which provides scripting language support within Java applications, and access to Java objects and methods from scripting languages. BSF allows one to write JSPs in languages other than Java while providing access to the Java class library. In addition, BSF permits any Java application to be implemented in part (or dynamically extended) by a language that is embedded within it. This is achieved by providing an API that permits calling scripting language engines from within Java, as well as an object registry that exposes Java objects to these scripting language engines.
=== Emerging ===
</blockquote>
Emerge {{Package|sys-power/acpupsd}}:
<console>
###i## emerge apcupsd
</console>


{{PageNeedsUpdates}}
==Configuration and Runlevel Registration==
Edit your <tt>/etc/apcupsd/apcupsd.conf</tt> properly.
 
To start <tt>apcupsd</tt>, run the following:
<console>
###i## /etc/init.d/apcupsd start
</console>
To add <tt>apcupsd</tt> to the appropriate runlevels, execute the following commands:
<console>
###i## rc-update add apcupsd default
* service apcupsd added to runlevel default
###i## rc-update add apcupsd.powerfail shutdown
* service apcupsd added to runlevel shutdown
</console>
 
==Check UPS status==
Finally, to check on the status of <tt>acpupsd</tt>, run the following:
<console>
###i## apcaccess status
###i## tail -f /var/log/apcupsd.events
</console>
 
[[Category:System]]
[[Category:First Steps]]
{{EbuildFooter}}
{{EbuildFooter}}

Revision as of 17:57, September 16, 2014

APC UPS Daemon

   Tip

We welcome improvements to this page. To edit this page, Create a Funtoo account. Then log in and then click here to edit this page. See our editing guidelines to becoming a wiki-editing pro.


"Apcupsd can be used for power mangement and controlling most of APC's UPS models on Unix and Windows machines. Apcupsd works with most of APC's Smart-UPS models as well as most simple signalling models such a Back-UPS, and BackUPS-Office. During a power failure, apcupsd will inform the users about the power failure and that a shutdown may occur. If power is not restored, a system shutdown will follow when the battery is exhausted, a timeout (seconds) expires, or runtime expires based on internal APC calculations determined by power consumption rates. Apcupsd is licensed under the GPL version 2." [1]

Installation

Emerging

Emerge No results:

root # emerge apcupsd

Configuration and Runlevel Registration

Edit your /etc/apcupsd/apcupsd.conf properly.

To start apcupsd, run the following:

root # /etc/init.d/apcupsd start

To add apcupsd to the appropriate runlevels, execute the following commands:

root # rc-update add apcupsd default
 * service apcupsd added to runlevel default
root # rc-update add apcupsd.powerfail shutdown
 * service apcupsd added to runlevel shutdown

Check UPS status

Finally, to check on the status of acpupsd, run the following:

root # apcaccess status
root # tail -f /var/log/apcupsd.events