Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Jan 2005 20:50:23 GMT
From:      EM <xanthor@middleearthnet.com>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/76370: Mailgraph.sh: Error on status/stop; can't find pid
Message-ID:  <200501172050.j0HKoNju048546@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/76370; it has been noted by GNATS.

From: EM <xanthor@middleearthnet.com>
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          |
 +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501172050.j0HKoNju048546>