pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/36192: sysutils/apcupsd has a bad rc.d file
The following reply was made to PR pkg/36192; it has been noted by GNATS.
From: Bernd Ernesti <veego%NetBSD.org@localhost>
To: gnats-bugs%NetBSD.org@localhost, bouyer%NetBSD.org@localhost
Cc:
Subject: Re: pkg/36192: sysutils/apcupsd has a bad rc.d file
Date: Sun, 22 Apr 2007 17:59:34 +0200
On Sun, Apr 22, 2007 at 02:20:01PM +0000, smb%cs.columbia.edu@localhost wrote:
> >Description:
> The sample rc.d file isn't right for the NetBSD rc.d system.
> >How-To-Repeat:
> See above
> >Fix:
> Here's the script I'm using, though I suspect that some
> metavariables need to be used instead, and perhaps a
> variable config file.
It is mostly ok, there are only some additional lines missing.
See the following patch. There is also the issue that the installed
apcupsd.master.conf is outdated. I mentioned both problems two months ago
in a reply to pkg/35594.
Bernd
--- platforms/netbsd/apcupsd.in.orig 2002-05-28 15:34:05.000000000 +0200
+++ platforms/netbsd/apcupsd.in 2007-01-05 20:52:42.000000000 +0100
@@ -6,6 +6,10 @@
# chkconfig: 2345 20 99
# description: apcupsd monitors power and takes action if necessary
#
+# PROVIDE: apcupsd
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+#
APCPID=@PIDDIR@/apcupsd.pid
APCLOCK=@PIDDIR@/apcupsd.lock
DISTVER="@DISTVER@"
Home |
Main Index |
Thread Index |
Old Index