Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 215835 Details for
Bug 266804
sys-power/nut requires init script for OpenRC to kill power
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
supports both nut and apcupsd (with infinite loop)
powerfail (text/plain), 686 bytes, created by
Ștefan Talpalaru
on 2010-01-09 17:59:16 UTC
(
hide
)
Description:
supports both nut and apcupsd (with infinite loop)
Filename:
MIME Type:
Creator:
Ștefan Talpalaru
Created:
2010-01-09 17:59:16 UTC
Size:
686 bytes
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2009 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >depend() { > need mount-ro >} > >start() { > local UPS_CTL UPS_POWERDOWN > > if [[ -f /etc/killpower ]] ; then > UPS_CTL=/usr/sbin/upsdrvctl > UPS_POWERDOWN="${UPS_CTL} shutdown" > elif [[ -f /etc/apcupsd/powerfail ]] ; then > UPS_CTL=/sbin/apcupsd > UPS_POWERDOWN="${UPS_CTL} --killpower" > else > return 0 > fi > > if [[ $(runlevel) == *' 0' && -f ${UPS_CTL} ]] ; then > ebegin 'Signaling UPS to kill power' > ${UPS_POWERDOWN} > eend $? > ebegin 'Halt system and wait for the UPS to kill our power' > /sbin/halt -id > while [ 1 ]; do sleep 60; done > 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 266804
:
188920
|
215789
| 215835