diff options
author | ghen <ghen> | 2006-08-15 12:07:15 +0000 |
---|---|---|
committer | ghen <ghen> | 2006-08-15 12:07:15 +0000 |
commit | 27fe8a88fa77e68d0cd44520eee00f6f8b577429 (patch) | |
tree | 2a648037afdb81279b42c0d7993f261856e0a4cf /sysutils | |
parent | 6b4780cb77c0d9aef8e7089562014f66002c05bc (diff) | |
download | pkgsrc-27fe8a88fa77e68d0cd44520eee00f6f8b577429.tar.gz |
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 (limited to 'sysutils')
-rw-r--r-- | sysutils/ups-nut/Makefile | 4 | ||||
-rw-r--r-- | sysutils/ups-nut/files/upsd.sh | 3 | ||||
-rw-r--r-- | sysutils/ups-nut/files/upsmon.sh | 3 |
3 files changed, 5 insertions, 5 deletions
diff --git a/sysutils/ups-nut/Makefile b/sysutils/ups-nut/Makefile index a39b348ba37..f7b01083988 100644 --- a/sysutils/ups-nut/Makefile +++ b/sysutils/ups-nut/Makefile @@ -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 --git a/sysutils/ups-nut/files/upsd.sh b/sysutils/ups-nut/files/upsd.sh index a587cae0ccb..44c0e140470 100644 --- a/sysutils/ups-nut/files/upsd.sh +++ b/sysutils/ups-nut/files/upsd.sh @@ -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 --git a/sysutils/ups-nut/files/upsmon.sh b/sysutils/ups-nut/files/upsmon.sh index 5769ed8d21c..b191c7e97e3 100644 --- a/sysutils/ups-nut/files/upsmon.sh +++ b/sysutils/ups-nut/files/upsmon.sh @@ -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 ] |