pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/ups-nut rc.d scripts: upsmon does not require...
details: https://anonhg.NetBSD.org/pkgsrc/rev/42994dc4c974
branches: trunk
changeset: 517572:42994dc4c974
user: ghen <ghen%pkgsrc.org@localhost>
date: Tue Aug 15 12:07:15 2006 +0000
description:
rc.d scripts: upsmon does not require upsd <running on the same machine>, but
still, upsd should start before upsmon when they are running on the same
machine. The current setup (where upsmon.sh has REQUIRE: upsd) results in
errors like "rcorder: requirement `upsd' in file `upsmon' has no providers."
when you don't copy the upsd script to /etc/rc.d and set upsd=NO in
/etc/rc.conf.
Hence, remove REQUIRE: upsd from upsmon.sh and add BEFORE: upsmon to upsd.sh,
as suggested by jnemeth on tech-userlevel@. Bump PKGREVISION.
diffstat:
sysutils/ups-nut/Makefile | 4 ++--
sysutils/ups-nut/files/upsd.sh | 3 ++-
sysutils/ups-nut/files/upsmon.sh | 3 +--
3 files changed, 5 insertions(+), 5 deletions(-)
diffs (44 lines):
diff -r 655ac357ae87 -r 42994dc4c974 sysutils/ups-nut/Makefile
--- a/sysutils/ups-nut/Makefile Tue Aug 15 11:16:41 2006 +0000
+++ b/sysutils/ups-nut/Makefile Tue Aug 15 12:07:15 2006 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.44 2006/08/02 12:31:54 ghen Exp $
+# $NetBSD: Makefile,v 1.45 2006/08/15 12:07:15 ghen Exp $
#
DISTNAME= nut-2.0.3
PKGNAME= ups-nut-2.0.3
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= http://random.networkupstools.org/source/2.0/
diff -r 655ac357ae87 -r 42994dc4c974 sysutils/ups-nut/files/upsd.sh
--- a/sysutils/ups-nut/files/upsd.sh Tue Aug 15 11:16:41 2006 +0000
+++ b/sysutils/ups-nut/files/upsd.sh Tue Aug 15 12:07:15 2006 +0000
@@ -1,9 +1,10 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: upsd.sh,v 1.6 2003/01/26 00:48:24 fredb Exp $
+# $NetBSD: upsd.sh,v 1.7 2006/08/15 12:07:15 ghen Exp $
#
# PROVIDE: upsd
# REQUIRE: upsdriver
+# BEFORE: upsmon
# KEYWORD: shutdown
if [ -f /etc/rc.subr ]
diff -r 655ac357ae87 -r 42994dc4c974 sysutils/ups-nut/files/upsmon.sh
--- a/sysutils/ups-nut/files/upsmon.sh Tue Aug 15 11:16:41 2006 +0000
+++ b/sysutils/ups-nut/files/upsmon.sh Tue Aug 15 12:07:15 2006 +0000
@@ -1,9 +1,8 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: upsmon.sh,v 1.6 2004/02/15 13:14:25 lukem Exp $
+# $NetBSD: upsmon.sh,v 1.7 2006/08/15 12:07:15 ghen Exp $
#
# PROVIDE: upsmon
-# REQUIRE: upsd
# KEYWORD: shutdown
if [ -f /etc/rc.subr ]
Home |
Main Index |
Thread Index |
Old Index