diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2011-06-04 18:42:57 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2011-06-04 18:42:57 +0000 |
commit | f6d3eb4dc3c36c210076a55d16ac93c26f8b969f (patch) | |
tree | 089b0f4f1b5e52969897db5317f64b9ab41696f1 /sys-power/apcupsd/files | |
parent | alpha/ia64/sparc stable wrt #366239 (diff) | |
download | gentoo-2-f6d3eb4dc3c36c210076a55d16ac93c26f8b969f.tar.gz gentoo-2-f6d3eb4dc3c36c210076a55d16ac93c26f8b969f.tar.bz2 gentoo-2-f6d3eb4dc3c36c210076a55d16ac93c26f8b969f.zip |
Wait 1.5 seconds to see if apcupsd exits diretly.
(Portage version: 2.2.0_alpha37/cvs/Linux x86_64)
Diffstat (limited to 'sys-power/apcupsd/files')
-rw-r--r-- | sys-power/apcupsd/files/apcupsd.init.2 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys-power/apcupsd/files/apcupsd.init.2 b/sys-power/apcupsd/files/apcupsd.init.2 index 43868f75ddaf..1dbd936da9e4 100644 --- a/sys-power/apcupsd/files/apcupsd.init.2 +++ b/sys-power/apcupsd/files/apcupsd.init.2 @@ -1,7 +1,7 @@ #!/sbin/runscript -# Copyright 2007 Gentoo Foundation +# Copyright 2007-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.2,v 1.1 2009/01/15 15:21:11 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-power/apcupsd/files/apcupsd.init.2,v 1.2 2011/06/04 18:42:57 flameeyes Exp $ INSTANCE="${SVCNAME#*.}" if [ -z "${INSTANCE}" ] || [ "${SVCNAME}" = "apcupsd" ]; then @@ -20,6 +20,7 @@ start() { ebegin "Starting APC UPS daemon" start-stop-daemon \ --start --pidfile "/var/run/${SVCNAME}.pid" \ + --wait 1500 \ --exec /sbin/apcupsd -- \ -f "/etc/apcupsd/${INSTANCE}.conf" \ -P "/var/run/${SVCNAME}.pid" |