From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Jan 17 20:50:24 2005 Return-Path: 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 5564616A4CE for ; Mon, 17 Jan 2005 20:50:24 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F22D43D31 for ; Mon, 17 Jan 2005 20:50:24 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0HKoNcL048547 for ; Mon, 17 Jan 2005 20:50:23 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0HKoNju048546; Mon, 17 Jan 2005 20:50:23 GMT (envelope-from gnats) Date: Mon, 17 Jan 2005 20:50:23 GMT Message-Id: <200501172050.j0HKoNju048546@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: EM Subject: Re: ports/76370: Mailgraph.sh: Error on status/stop; can't find pid X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: EM List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jan 2005 20:50:24 -0000 The following reply was made to PR ports/76370; it has been noted by GNATS. From: EM To: freebsd-gnats-submit@FreeBSD.org, xanthor@middleearthnet.com Cc: Subject: Re: ports/76370: Mailgraph.sh: Error on status/stop; can't find pid Date: Mon, 17 Jan 2005 21:41:09 +0100 Hello, in the "Fix" section on the "Bug Report" form, I forgot to add to edit the file /usr/local/etc/mailgraph.sh and comment-out the line: command_interpreter=/usr/bin/perl So the complete fix that worked for me is the following: (1) Edit /usr/local/sbin/mailgraph.pl and add the following line: $0="mailgraph.pl" Infact "perldoc perlvar" states: "On some (read: not all) operating systems assigning to $0 modifies the argument area that the "ps" program sees. On some platforms you may have to use special "ps" options or a different "ps" to see the changes. Modifying the $0 is more useful as a way of indicating the current program state than it is for hiding the program you're running." (2) Edit /usr/local/etc/rc.d/mailgraph.sh and comment-out the following line: command_interpreter=/usr/bin/perl Note: on FreeBSD 5.3 the file /var/log/maillog has the following default permissions: -rw-r----- 1 root wheel 1167566 Jan 17 21:35 /var/log/maillog so, if the user/group we choose to run mailgraph doesn't belong to the group wheel, we need to make /var/log/maillog world-readable, by modyfing in /etc/newsyslog.conf the following line: /var/log/maillog 640 7 * @T00 J to: /var/log/maillog 644 7 * @T00 J and then restart syslogd. Regards, Oronzo Mazzeo (xanthor@middleearthnet.com) -- +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ | UNIX is user friendly, | | it is just selective of who its friends are... | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ | web e-mail | | www.middleearthnet.com xanthor@middleearthnet.com | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ | M i d d l e E a r t h N e t . C o m | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+