From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Sep 24 19:40:17 2005 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE22716A41F for ; Sat, 24 Sep 2005 19:40:17 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id AE90B43D48 for ; Sat, 24 Sep 2005 19:40:17 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8OJeHta028729 for ; Sat, 24 Sep 2005 19:40:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8OJeHoY028728; Sat, 24 Sep 2005 19:40:17 GMT (envelope-from gnats) Date: Sat, 24 Sep 2005 19:40:17 GMT Message-Id: <200509241940.j8OJeHoY028728@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: =?ISO-8859-1?Q?Bj=F6rn_K=F6nig?= Cc: Subject: Re: ports/85985: [NEW PORT] mail/couriergraph: A RRDtool frontend for Courier statistics X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: =?ISO-8859-1?Q?Bj=F6rn_K=F6nig?= List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Sep 2005 19:40:18 -0000 The following reply was made to PR ports/85985; it has been noted by GNATS. From: =?ISO-8859-1?Q?Bj=F6rn_K=F6nig?= To: bug-followup@FreeBSD.org, kiwi@oav.net Cc: Subject: Re: ports/85985: [NEW PORT] mail/couriergraph: A RRDtool frontend for Courier statistics Date: Sat, 24 Sep 2005 21:33:45 +0200 I tested it but the couriergraph.sh rcNG script appears to be totally broken on my FreeBSD 6.0-BETA2 machine. I added the line couriergraph_enable="YES" to /etc/rc.conf and started the daemon. # /usr/local/etc/rc.d/couriergraph.sh start Starting couriergraph. mailgraph: can't write to /var/db/couriergraph This happened because I installed a package on another machine, but the install routine of the port created the directory only on the package build machine. These lines let the start script check for the presence of the data directory: start_precmd=start_precmd start_precmd() { if [ ! -d ${couriergraph_chdir} ]; then mkdir -p ${couriergraph_chdir} chown ${couriergraph_user}:${couriergraph_group} \ ${couriergraph_chdir} fi } The next thing is that it just doesn't start nevertheless: # /usr/local/etc/rc.d/couriergraph.sh start Starting couriergraph. # ps aux | grep perl [nothing] # /usr/bin/perl /usr/local/sbin/couriergraph.pl \ --logfile /var/log/maillog --daemon-rrd=/var/db/couriergraph \ --daemon --daemon-pid=/var/db/couriergraph/couriergraph.pid # ps aux | grep perl [process with pid 22332] # cat /var/db/couriergraph/couriergraph.pid 22332 Alright. It's running now ... # /var/db/couriergraph/couriergraph.pid couriergraph not running? (check /var/db/couriergraph/couriergraph.pid). ... but it doesn't stop. I'll look at it again if I have a little bit more time. Regards Björn