ports/104159: [PATCH] net-p2p/mldonkey-devel: Send stderr to logfile
Herve Quiroz
hq at FreeBSD.org
Sun Oct 8 12:50:38 UTC 2006
>Number: 104159
>Category: ports
>Synopsis: [PATCH] net-p2p/mldonkey-devel: Send stderr to logfile
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun Oct 08 12:50:20 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Herve Quiroz
>Release: FreeBSD 6.2-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD wec.dyndns.org 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Fri Sep 29 11:30:56 CEST 2006
>Description:
Currently, there are several lines printed to stderr (e.g. when starting the
mlnet daemon). With this patch, both stdout and stderr contents are appended to
${mlnet_logfile} (or /dev/null if no value is set for ${mlnet_logfile}).
Port maintainer (lioux at FreeBSD.org) is cc'd.
Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:
--- mldonkey-devel-2.8.1_1.patch begins here ---
Index: files/mlnet.in
===================================================================
RCS file: /home/ncvs/ports/net-p2p/mldonkey-devel/files/mlnet.in,v
retrieving revision 1.4
diff -u -u -r1.4 mlnet.in
--- files/mlnet.in 17 Mar 2006 02:17:51 -0000 1.4
+++ files/mlnet.in 8 Oct 2006 12:02:00 -0000
@@ -49,18 +49,20 @@
{
if [ -n "${mlnet_logfile}" ]; then
mlnet_logcommand="-log_file ${mlnet_logfile}"
+ else
+ mlnet_logfile="/dev/null"
fi
if [ "x${mlnet_user}" = "x$(whoami)" ]; then
eval "${command} \
${mlnet_logcommand} \
${mlnet_flags} \
- >/dev/null &"
+ >> ${mlnet_logfile} 2>&1 &"
else
su -l ${mlnet_user} -c "${command} \
${mlnet_logcommand} \
${mlnet_flags} \
- >/dev/null &"
+ >> ${mlnet_logfile} 2>&1 &"
fi
}
--- mldonkey-devel-2.8.1_1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list