Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 444104 Details for
Bug 592108
sys-power/apcupsd-3.14.13: after power failure, send email when starting
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
New file (patched) /etc/init.d/apcupsd
apcupsd (text/plain), 889 bytes, created by
denis.chancogne
on 2016-08-25 16:06:14 UTC
(
hide
)
Description:
New file (patched) /etc/init.d/apcupsd
Filename:
MIME Type:
Creator:
denis.chancogne
Created:
2016-08-25 16:06:14 UTC
Size:
889 bytes
patch
obsolete
>#!/sbin/openrc-run ># Copyright 1999-2013 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Id$ > >INSTANCE="${RC_SVCNAME#*.}" > >APCUPSD_RUN_DIR="/run/apcupsd" >POWERFAIL_FILE="/etc/apcupsd/powerfail" >INSTANCE_CONF_FILE="/etc/apcupsd/${INSTANCE}.conf" > >description="APC UPS daemon" >name="${description}" >command="/sbin/apcupsd" >pidfile="${APCUPSD_RUN_DIR}/${RC_SVCNAME}.pid" >command_args="-f ${INSTANCE_CONF_FILE} -P ${pidfile}" > >depend() { > use net mta >} > >_mng_powerfail() { > local UPSNAME=$(awk '{if($1 == "UPSNAME"){print $2}}' ${INSTANCE_CONF_FILE}) > [ -z "${UPSNAME}" ] && UPSNAME=$(hostname) > /etc/apcupsd/apccontrol offbattery ${UPSNAME} > rm -f ${POWERFAIL_FILE} >} > >start_pre() { > checkpath -d -m 0775 -o root:uucp ${APCUPSD_RUN_DIR} >} > >start_post() { > if [ "${INSTANCE}" = "apcupsd" -a -f ${POWERFAIL_FILE} ] > then > sleep 2 > _mng_powerfail > fi >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 592108
:
444102
| 444104