tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
PKG_USER fix for munin-server
The recommended setup for munin-server is to launch a cron job to update
the RRD db regularly [1].
However the default homedir for munin user is /nonexistent. When cron(8)
tries to chdir(2) to it [2], it will fail, and return immediately.
May I commit this trivial patch to fix this? munin-server is a leaf pkg.
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/sysutils/munin-server/Makefile,v
retrieving revision 1.17
diff -u -p -r1.17 Makefile
--- Makefile 3 Oct 2012 21:57:40 -0000 1.17
+++ Makefile 30 Dec 2012 18:40:24 -0000
@@ -40,7 +40,7 @@ MUNIN_GROUP?= munin
MUNIN_USER?= munin
PKG_GROUPS= ${MUNIN_GROUP}
-PKG_USERS= ${MUNIN_USER}:${MUNIN_GROUP}
+PKG_USERS= ${MUNIN_USER}:${MUNIN_GROUP}:::${VARBASE}/munin
PKG_GECOS.${MUNIN_USER}= Munin user
USERGROUP_PHASE= pre-install
[1]
http://cvsweb.se.netbsd.org/cgi-bin/bsdweb.cgi/pkgsrc/sysutils/munin-server/MESSAGE
[2] http://nxr.netbsd.org/xref/src/external/bsd/cron/dist/do_command.c#266
--
Jean-Yves Migeon
jeanyves.migeon%free.fr@localhost
Home |
Main Index |
Thread Index |
Old Index