* [gentoo-commits] gentoo-x86 commit in sys-power/apcupsd/files: apcupsd.init.3
@ 2011-10-21 22:06 Diego Petteno (flameeyes)
0 siblings, 0 replies; only message in thread
From: Diego Petteno (flameeyes) @ 2011-10-21 22:06 UTC (permalink / raw
To: gentoo-commits
flameeyes 11/10/21 22:06:43
Added: apcupsd.init.3
Log:
Simplify init script with the new declarative runscript.
(Portage version: 2.2.0_alpha69/cvs/Linux x86_64)
Revision Changes Path
1.1 sys-power/apcupsd/files/apcupsd.init.3
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/apcupsd/files/apcupsd.init.3?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/apcupsd/files/apcupsd.init.3?rev=1.1&content-type=text/plain
Index: apcupsd.init.3
===================================================================
#!/sbin/runscript
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-power/apcupsd/files/apcupsd.init.3,v 1.1 2011/10/21 22:06:43 flameeyes Exp $
INSTANCE="${SVCNAME#*.}"
if [ -z "${INSTANCE}" -o "${SVCNAME}" = "apcupsd" ]; then
INSTANCE="apcupsd"
fi
name="APC UPS Daemon"
pidfile=/var/run/${SVCNAME}.pid
command=/sbin/apcupsd
command_args="-f /etc/apcupsd/${INSTANCE}.conf -P ${pidfile}"
start_stop_daemon_args="--wait 300 --retry TERM/5/TERM/5"
depend() {
use net
after udev
}
start_pre() {
rm -f /etc/apcupsd/powerfail
export SERVICE="${SVCNAME}"
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-10-21 22:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-21 22:06 [gentoo-commits] gentoo-x86 commit in sys-power/apcupsd/files: apcupsd.init.3 Diego Petteno (flameeyes)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox