|
From: | Klaus Heinz |
Subject: | hard coded locations for monitrc |
Date: | Tue, 17 Apr 2007 00:12:36 +0200 |
Hi, I would like to propose a change regarding the hard coded locations of the monit configuration file. Instead of having the fixed string "/usr/local/etc/monitrc" in file.c why not using the (already existing) switch "--sysconfdir" provided by the configure script? The default location would remain "/usr/local/etc" (as sysconfdir is defined as "$prefix/etc" and prefix is "/usr/local") but it would be possible for people to override this. The pkgsrc package system for NetBSD and Dragonfly BSD (and some other operating systems) is usually set up to install into a directory hierarchy other than /usr/local. As a consequence of this proposed change, it would be desirable to have the location of the configuration file noted in the man page. Up to now the parameters supplied to the configure script are not patched into the man page during the configure or build stage. The appended patches implement this proposal for using "--sysconfdir" and building monit.1 dynamically from monit.1.in. Apply all patches in the source directory, then rename the patched "monit.1" to "monit.1.in", then run "configure" and "gmake". ciao Klaus
patch-ac
Description: Text document
patch-ad
Description: Text document
patch-ag
Description: Text document
monit.1.patch
Description: Text document
[Prev in Thread] | Current Thread | [Next in Thread] |