ports/76370: Mailgraph.sh: Error on status/stop; can't find pid

EM xanthor at middleearthnet.com
Mon Jan 17 20:50:24 UTC 2005


The following reply was made to PR ports/76370; it has been noted by GNATS.

From: EM <xanthor at middleearthnet.com>
To: freebsd-gnats-submit at FreeBSD.org, xanthor at 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 at middleearthnet.com)
 
 -- 
 +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+
 | UNIX is user friendly,                                |
 |        it is just selective of who its friends are... |
 +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+
 | web                                            e-mail |
 | www.middleearthnet.com     xanthor at middleearthnet.com |
 +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+
 |          M i d d l e E a r t h N e t . C o m          |
 +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+
 



More information about the freebsd-ports-bugs mailing list