Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 416896 Details for
Bug 543776
sys-power/apcupsd-3.14.13: ebuild enhancement request
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
/etc/init.d/apcupsd script templlate
apcupsd.init.in (text/plain), 1.19 KB, created by
Joe M
on 2015-11-14 02:26:55 UTC
(
hide
)
Description:
/etc/init.d/apcupsd script templlate
Filename:
MIME Type:
Creator:
Joe M
Created:
2015-11-14 02:26:55 UTC
Size:
1.19 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2013 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Id$ > >INSTANCE="${SVCNAME#*.}" >if [ -z "${INSTANCE}" ] || [ "${SVCNAME}" = "apcupsd" ]; then > INSTANCE="apcupsd" >fi > >dir=@PIDDIR@ > >depend() { > use net >} > >start_pre() { > checkpath -d -m 0775 -o root:uucp @PIDDIR@ >} > >start() { > export SERVICE="${SVCNAME}" > > if [ ! -d "@PIDDIR@" ]; then > einfo " Creating pid dir: @PIDDIR@" > /bin/mkdir -p "@PIDDIR@" > /bin/chown root:uucp "@PIDDIR@" > fi > > if [ ! -d "@PWRFAILDIR@" ]; then > einfo " Creating power fail dir: @PWRFAILDIR@" > /bin/mkdir -p "@PWRFAILDIR@" > /bin/chown root:uucp "@PWRFAILDIR@" > fi > > rm --force @PWRFAILDIR@/powerfail > > ebegin "Starting APC UPS daemon" > start-stop-daemon \ > --start --pidfile "@PIDDIR@/${SVCNAME}.pid" \ > --exec /sbin/apcupsd -- \ > -f "@sysconfdir@/${INSTANCE}.conf" \ > -P "@PIDDIR@/${SVCNAME}.pid" > eend $? >} > >stop() { > ebegin "Stopping APC UPS daemon" > start-stop-daemon \ > --stop --pidfile "@PIDDIR@/${SVCNAME}.pid" \ > --retry TERM/5/TERM/5 \ > --exec /sbin/apcupsd > 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 543776
:
416890
|
416892
|
416894
| 416896 |
471470