Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 215789 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]
New ups-off script with infinit loop.
ups-off (text/plain), 521 bytes, created by
Kjell Claesson
on 2010-01-09 11:21:00 UTC
(
hide
)
Description:
New ups-off script with infinit loop.
Filename:
MIME Type:
Creator:
Kjell Claesson
Created:
2010-01-09 11:21:00 UTC
Size:
521 bytes
patch
obsolete
>#!/sbin/runscript > >description="Send upsdrvctl shutdown to power off ups." > >depend() >{ > need killprocs savecache mount-ro > keyword noprefix noopenvz novserver >} > >start() >{ > ebegin "Checking if we have powerloss" > if (test -f /etc/killpower) > then > ewarn "Powerloss!" > einfo "Killing the power, bye!" > /lib/nut/upsdrvctl shutdown > > sleep 120 > > while [ 1 ] > do > ewarn "uh oh... the UPS poweroff failed!" > ewarn "you probably should reboot here to avoid getting stuck" > > sleep 10 > done > fi > > eend $? >}
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